Bonjour,
en compilant mon prg me dit le message suivante:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
nom cannot be resolved to a variable
at Test3.main(Test3.java:7)
veuillez m'aider svp
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 public class Test3 { public static void main(String[] args) { afficheTableau(nom); } public static void afficheTableau(String[]tab) { for(int i=0;i<tab.length;i++) { System.out.println(tab[i]); } } }
Partager