Skip to content

Commit f588820

Browse files
authored
Add files via upload
1 parent 25fa3a4 commit f588820

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
*
3+
*/
4+
package trick;
5+
6+
/**
7+
* @author rutpatel
8+
*
9+
*/
10+
public class IntegerCache {
11+
12+
/**
13+
* @param args
14+
*/
15+
public static void main(String[] args) {
16+
17+
Integer i1 = 127;
18+
19+
Integer i2 = 127;
20+
21+
System.out.println(i1 == i2);
22+
23+
Integer i3 = 128;
24+
25+
Integer i4 = 128;
26+
27+
System.out.println(i3 == i4);
28+
29+
}
30+
31+
}

0 commit comments

Comments
 (0)