JavaPatternMatching/bin/mycompiler/test/blocks/TestIfStmt.jav

27 lines
299 B
Plaintext
Raw Normal View History

2013-10-18 11:33:46 +00:00
import java.util.Vector;
public class TestIfStmt {
public m1() {
a;
if (a) {
return a;
}
else
return false;
}
public m2() {
a;
c;
a = new Vector<Integer>();
if (a.isEmpty()) {
c="empty";
}
else if (a.size()==1) {
c="almost empty";
}
else
return a;
}
}