2014-09-01 07:05:08 -04:00
|
|
|
package pkg;
|
2014-08-13 16:17:21 -04:00
|
|
|
|
2014-08-16 09:31:53 -04:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
2014-08-13 16:17:21 -04:00
|
|
|
|
|
|
|
public class TestClassTypes {
|
|
|
|
public void testBoolean() {
|
|
|
|
byte var1 = 0;
|
|
|
|
long var2 = System.currentTimeMillis();
|
|
|
|
if(var2 % 2L > 0L) {
|
|
|
|
var1 = 1;
|
|
|
|
} else if(var2 % 3L > 0L) {
|
|
|
|
var1 = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(var1 == 1) {
|
|
|
|
System.out.println();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2014-08-16 09:31:53 -04:00
|
|
|
|
2014-08-17 13:20:56 -04:00
|
|
|
public boolean testBit(int var1) {
|
|
|
|
return (var1 & 1) == 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void testSwitchConsts(int var1) {
|
|
|
|
switch(var1) {
|
|
|
|
case 88:
|
|
|
|
System.out.println("1");
|
|
|
|
break;
|
|
|
|
case 656:
|
|
|
|
System.out.println("2");
|
|
|
|
break;
|
|
|
|
case 65201:
|
|
|
|
case 65489:
|
|
|
|
System.out.println("3");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-08-16 09:31:53 -04:00
|
|
|
public void testAssignmentType(List var1) {
|
|
|
|
Object var2 = var1;
|
|
|
|
if(var1 != null) {
|
|
|
|
((List)(var2 = new ArrayList(var1))).add("23");
|
|
|
|
}
|
|
|
|
|
|
|
|
System.out.println(((List)var2).size());
|
|
|
|
}
|
2014-08-13 16:17:21 -04:00
|
|
|
}
|