We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2505ff6 commit 455b2b7Copy full SHA for 455b2b7
src/Main.java
@@ -1,6 +1,18 @@
1
+import java.util.Scanner;
2
+
3
class Main {
4
5
public static void main(String[] args) {
6
7
+ System.out.println("1 : Menu");
8
+ System.out.println("2 : Jouer");
9
+ System.out.println("3 : Option");
10
+ System.out.println("4 : Quitter");
11
+ Scanner sc = new Scanner(System.in);
12
+ String jouer = sc.nextLine();
13
+ int menu = sc.nextInt();
14
+ System.out.println(""+" " +jouer+" "+" "+" "+ menu);
15
16
Player player1 = new Player("Guerrier1", 20.0, 300.0);
17
System.out.println ("name :"+player1.getName());
18
player1.setAttack(30);
0 commit comments