-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample1.java
More file actions
34 lines (34 loc) · 897 Bytes
/
Copy pathexample1.java
File metadata and controls
34 lines (34 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import java.io.*;
public class welcome(){
public static void main(String[] args){
int age = 22;
float gpa = 3.33;
double salary = 1000.235;
boolean test = true;
String name = "initial string";
int nnumberArray[5]={1,2,3,4,5};
for(int i=0;i>50;i++)
{
System.out.println("Calculate BigO for this loop......");
int a = 50;
String check = "Am the string inside the forloop";
double mathExpression = 5*5;
System.out.println(mathExpression);
}
int age = 22;
while(age<=10)
{
System.out.println("Am inside while loop");
String whiler = "String in while loop";
int number = 99;
}
System.out.println("checking print statments");
System.out.print("Checking print statements 2");
if(a<b)
{
System.out.println("Am inside if condition");
int number = 100;
a = b*a;
}
}
}