Skip to content

Commit de4557b

Browse files
Create CWH_04_literals.java
1 parent fc2d2a8 commit de4557b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

4.Literals/CWH_04_literals.java

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.company;
2+
3+
public class CWH_04_literals {
4+
public static void main(String[] args) {
5+
byte age = 34;
6+
int age2 = 56;
7+
short age3 = 87;
8+
long ageDino = 5666666666666L;
9+
char ch = 'A';
10+
float f1 = 5.6f;
11+
double d1 = 4.66;
12+
boolean a = true;
13+
14+
System.out.print(age);
15+
16+
String str = "Harry";
17+
18+
System.out.println(str);
19+
}
20+
}

0 commit comments

Comments
 (0)