File tree Expand file tree Collapse file tree 4 files changed +40
-1
lines changed Expand file tree Collapse file tree 4 files changed +40
-1
lines changed Original file line number Diff line number Diff line change
1
+ package me .ramswaroop .common ;
2
+
3
+ /**
4
+ * Created by IntelliJ IDEA.
5
+ * User: ramswaroop
6
+ * Date: 3/24/15
7
+ * Time: 3:02 PM
8
+ * To change this template go to Preferences | IDE Settings | File and Code Templates
9
+ */
10
+ public class Stack {
11
+ }
Original file line number Diff line number Diff line change 1
- package me .ramswaroop ;
1
+ package me .ramswaroop . rough ;
2
2
3
3
/**
4
4
* Created by IntelliJ IDEA.
Original file line number Diff line number Diff line change
1
+ package me .ramswaroop .rough ;
2
+
3
+ /**
4
+ * Created by IntelliJ IDEA.
5
+ * User: ramswaroop
6
+ * Date: 3/14/15
7
+ * Time: 4:38 PM
8
+ * To change this template go to Preferences | IDE Settings | File and Code Templates
9
+ */
10
+ public class Equals {
11
+ public static void main (String [] a ) {
12
+ Short i = new Short ((short ) 12 );
13
+ Short j = new Short ((short ) 12 );
14
+ System .out .print (j == i ); // prints false as compiler compares 2 references instead of their values
15
+ System .out .print (12 == i ); // prints true as the compiler unboxes "i" and then compares the value
16
+ }
17
+ }
Original file line number Diff line number Diff line change
1
+ package me .ramswaroop .trees ;
2
+
3
+ /**
4
+ * Created by IntelliJ IDEA.
5
+ * User: ramswaroop
6
+ * Date: 3/24/15
7
+ * Time: 3:02 PM
8
+ * To change this template go to Preferences | IDE Settings | File and Code Templates
9
+ */
10
+ public class ImplicitTreeTraversal {
11
+ }
You can’t perform that action at this time.
0 commit comments