Bonjour,
J'ai des erreurs dans mon code et je n'arrive pas à compiler mon programme.
Quelqu'un saurait-il m'indiquer ce qui ne va pas ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 public class Somme { Somme(String s){ super(s); System.out.println(s+"hhhh"); } public void run(){ int j = 0; for(int i=0; i<9; i++){ j=j+i; } System.out.println(j); } class Main3{ public static void main(String args[]){ for(int i=0; i<4; i++){ new Somme("Somme" + Integer.toString(i)).start(); } } } }
Merci d'avance pour votre aide.
Partager