blob: fafa0d52bead1daffe7be4c9b3d996297e2ef772 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// "Replace with 'Math.min()' call" "true"
import java.util.Random;
class VariableValueUsed {
private static final Random rnd = new Random();
private static int test() {
return rnd.nextInt();
}
public static void main(String[] args) {
int l = 2;
int myNumber = test();
<caret>if (l+/*6*/1 <=/*3*/ myNumber/*4*/ - 2) {
myNumber = l/*1*/+1;
} else {
myNumber = /*2*/ myNumber /*5*/- 2;
}
System.out.println(myNumber);
}
}
|