30 lines
586 B
Java
30 lines
586 B
Java
import java.lang.Integer;
|
|
import java.lang.Boolean;
|
|
import java.lang.String;
|
|
import java.lang.Byte;
|
|
import java.lang.Short;
|
|
import java.lang.Long;
|
|
import java.lang.Float;
|
|
import java.lang.Double;
|
|
import java.lang.Character;
|
|
|
|
class AssignToLit {
|
|
void m(){
|
|
String s = "String";
|
|
Boolean b = false;
|
|
Byte byte1 = 5;
|
|
Byte byte2 = 55;
|
|
Short short1 = 5;
|
|
Short short2 = 55;
|
|
Integer int1 = 5;
|
|
Integer int2 = 8888888;
|
|
Long long1 = 1;
|
|
Long long2 = 5;
|
|
Long long3 = 89989898;
|
|
Float float1 = 1;
|
|
Float float2 = 55;
|
|
Double d1 = 1;
|
|
Double d2 = 55;
|
|
Character c = 'A';
|
|
}
|
|
} |