- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnotes.java
More file actions
Latest commit
23 lines (17 loc) · 625 Bytes
/
Copy pathnotes.java
File metadata and controls
23 lines (17 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
classnotes {
publicstaticvoidmain(String[] args) {
System.out.println("Welcome");
intmy_int = -5;
System.out.println("my_int = " + my_int);
longmy_long = 5;
System.out.println("my_long = " + my_long);
doublemy_double = 5.0;
System.out.println("my_double = " + my_double);
floatmy_float = (float) 5.0;
floatmy_float2 = 5.0f;
System.out.println("my_float = " + my_float + " " + my_float2);
charmy_char = 'a';
charmy_char2 = '\u00aa';
System.out.println("my_char = " + my_char + " " + my_char2);
}
}