Skip to content

Commit 7d80982

Browse files
authored
Update UniCodeMagic.java
1 parent 21a9adf commit 7d80982

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

BasicJava/src/trick/UniCodeMagic.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ public class UnicodeMagic {
1414
*/
1515
public static void main(String[] args) {
1616

17+
// the line below this gives an output
18+
// \u000d System.out.println("comment executed");
19+
1720
// no error in naming variable as below
1821
int $_ = 5;
1922

20-
// the line below this gives an output
21-
// \u000d System.out.println("comment executed");
22-
23+
long longWithL = 1000*60*60*24*365L;
24+
long longWithoutL = 1000*60*60*24*365;
25+
System.out.println(longWithL);
26+
System.out.println(longWithoutL);
2327
}
2428

2529
}

0 commit comments

Comments
 (0)