CSC300: Unboxing [13/23] Previous pageContentsNext page

Integer a = 3000;
Integer b = 3000;
int x = a.intValue();
int y = b.intValue();
x=3000, y=3000
                  x==y : true
eqi09

Previous pageContentsNext page