-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelloWorld.java
More file actions
45 lines (32 loc) · 777 Bytes
/
HelloWorld.java
File metadata and controls
45 lines (32 loc) · 777 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
35
36
37
38
39
40
41
42
43
44
45
package JavaPrimer;
public class HelloWorld {
public static void main(String[] args) {
Long a = 15l;
char letter = 'a';
int number1 = 100;
int number2 = number1;
number1 = 200;
float f1 = 10.0f;
float f2 = 10.0f;
float f3 = f1/f2 == 1.0f? 1.0f:1.1f;
boolean b1 = false;
String k = "";
if (b1){
k = "asda";
}
//System.out.println(k);
int v1, v2,v3;
v1 = 10;
v2 = 20;
v3 = 30;
if(v1 < v2 & v2 < v3){
System.out.println("hellow");
}
else if(v1 > v2 & v2 > v3) {
System.out.println("hello");
}
else {
System.out.println("hello1");
}
}
}