-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNewClass2.java
More file actions
29 lines (28 loc) · 791 Bytes
/
NewClass2.java
File metadata and controls
29 lines (28 loc) · 791 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
//Variable and data type---------
//psvm + tab = public static void main(String[] args) {}
//sout + tab = System.out.println("");
package javaapplication;
/**
* @author ARIFUL ISLAM
*/
public class NewClass2 {
public static void main(String[] args) {
boolean b = true;//dinamic inisialayzation
char c;
short s;
int i;
float f;
double d;
System.out.println("Boolean = "+b);
c = 'a';
System.out.println("Char = "+c);
s = 32677;
System.out.println("Short = "+s);
i = 326767787;
System.out.println("Int = "+i);
f = 30.20f;
System.out.println("Float = "+f);
d = 30545.60;
System.out.println("double = "+d);
}
}