This commit is contained in:
Dmitry Jemerov
2009-09-10 21:30:46 +04:00
parent 4e0b0c39af
commit a5f846b4d4
87 changed files with 20 additions and 29 deletions
@@ -0,0 +1,21 @@
import java.util.*;
public class Test {
int field;
int method() {
return <selection>field</selection>;
}
}
public class Usage {
int usage(Test[] tests) {
int sum = 0;
for(int i = 0; i < tests.length;) {
sum += tests[i++].method();
}
List list = Arrays.asList(tests);
for(int i = 0; i < list.size();) {
sum += ((Test)list.get(i++)).method();
}
}
}