You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
252 B
19 lines
252 B
8 years ago
|
package pkg;
|
||
|
|
||
|
public class TestInUse {
|
||
|
public int getInt() {
|
||
|
return 42;
|
||
|
}
|
||
|
|
||
|
protected int reuse() {
|
||
|
int i = 0, d = 0;
|
||
|
int result = 0;
|
||
|
do {
|
||
|
d = getInt();
|
||
|
result -= d;
|
||
|
}
|
||
|
while (++i < 10);
|
||
|
return result;
|
||
|
}
|
||
|
}
|