- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVariables.java
More file actions
Latest commit
55 lines (34 loc) · 1.04 KB
/
Copy pathVariables.java
File metadata and controls
55 lines (34 loc) · 1.04 KB
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
46
47
48
49
50
51
52
53
54
55
packagecom.beyzakaynar.javalearning;
publicclassVariables {
publicstaticvoidmain(String[] args) {
//Integer = int
//Double - Float
//String
//boolean
intx = 5;
inty = 4;
intage = 19;
intresult = age*4/3;
System.out.println(result);
//////////////////////////
finaldoublepi = 3.14;
//final deðiþkenimizi sabit yaptý
doubler = 5.0;
System.out.println(2*pi*r);
/////////////////////////////
floata = 19.0f;
//Sonuna f koyduðumuzda sistem float olduðunu anlar
System.out.println(a*4/3);
//////////////////////////////
Stringname = "James";
Stringsurname = "Matt";
Stringfullname = name + " " + surname;
System.out.println(name);
System.out.println(surname);
System.out.println(fullname);
/////////////////////////////
booleanisAlive = true;
isAlive = false;
System.out.println(isAlive);
}
}