Added tests
This commit is contained in:
parent
63c312589a
commit
5a1d4b8e8d
4 changed files with 42 additions and 1 deletions
11
src/test/res/mytest/BasicIf.java
Normal file
11
src/test/res/mytest/BasicIf.java
Normal file
|
@ -0,0 +1,11 @@
|
|||
public class BasicIf {
|
||||
public static void main(String[] args) {
|
||||
boolean isMoving = false;
|
||||
int currentSpeed = 10;
|
||||
if (isMoving) {
|
||||
currentSpeed--;
|
||||
} else {
|
||||
System.err.println("The bicycle has already stopped!");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue