-
Notifications
You must be signed in to change notification settings - Fork 0
/
AldhiyaMath.java
31 lines (27 loc) · 1.2 KB
/
AldhiyaMath.java
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
public class AldhiyaMath {
public static void main (String[] args) {
System.out.println ("*******************************************");
System.out.println ("* SMK TELKOM MEDAN *");
System.out.println ("*-----------------------------------------*");
System.out.println ("* NAMA = Aldhiya Rozak *");
System.out.println ("* KELAS = XI RPL *");
System.out.println ("* NO = 02 *");
System.out.println ("*******************************************");
Character objChar = new Character('W');
Byte objByte=new Byte("12");
Short objShort=new Short("100");
Integer objInt=new Integer(523);
Long objLong=new Long("7689");
Boolean objBool=new Boolean(true);
Float objFloat=new Float(82.89);
Double objDouble=new Double (34.67);
System.out.println ("Character = "+objChar);
System.out.println ("Byte = "+objByte);
System.out.println ("Short = "+objShort);
System.out.println ("Integer = "+objInt);
System.out.println ("Long = "+objLong);
System.out.println ("Boolean = "+objBool);
System.out.println ("Float = "+objFloat);
System.out.println ("Double = "+objDouble);
}
}