- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariable.java
More file actions
Latest commit
15 lines (15 loc) · 640 Bytes
/
Copy pathvariable.java
File metadata and controls
15 lines (15 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
publicclassMain
{
publicstaticvoidmain (String[] args)
{
booleana = false; //8 bit true/false
byteb = 2; //8 bit -27 bis 27-1
shortc = 34; //16 bit -215 bis 215-1
chard = 'A'; //16 bit 0 bis 65535
inte = 3; //32 bit -231 bis 231-1
floatf = 1.00f; //32 bit +/-1,4E-45 bis +/-3,4E+38
longg = 3123; //64 bit -263 bis 263-1
doubleh = 34.42; //64 bit +/-4,9E-324 bis +/-1,7E+308
System.out.println(a);
}
}