-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
21 lines (19 loc) · 709 Bytes
/
Main.java
File metadata and controls
21 lines (19 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import java.io.IOException;
public class Main {
public static void main(String args[]) throws IOException {
boolean if_want_play;
Odczyt odczyt = new Odczyt();
Clear clear = new Clear();
String o;
do{
System.out.println("Do you want play again");
System.out.println("If you want enter yes or y");
System.out.println("If you dont want enter somethink dofferent");
o = odczyt.odczyt().toUpperCase();
clear.clear();
if ( o.equals("YES")||o.equals("Y")||o.equals("1")){
Controler controler = new Controller();
}
}while(o.equals("YES")||o.equals("Y")||o.equals("1"));
}
}