Bonsoir,
J'ai 3fois la meme erreur que je ne trouve pas :
Le compilateur m'indique 3 fois la meme erreur : c'est à dire
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
21
22
23
24
25 class exo83 { static boolean estegal (int[] a1, int[] a2, int[] a3, int[] a4) { boolean res = false; int i; if ( a1[i]==a2[i]){ if ( (a1[i]!=a3[i]) || ( a1[i]!=a4[i])){ res = true;} }else{ res = false; } return res; } public static void main (String [] args) { int [] t1 = {4,5,6} ; int [] t2 = {4,5,6} ; int [] t3 = {4,5} ; int [] t4 = {6,5,4} ; Terminal.ecrireStringln(" voici le resultat de comparaison de t1 = t2" + estegal(t1,t2)); Terminal.ecrireStringln(" voici le resultat de comparaison de t1 = t3" + estegal(t1,t3)); Terminal.ecrireStringln(" voici le resultat de comparaison de " + t1 + " et de " + t4 + estegal(t1,t4)); } }
C:\Documents and Settings\rohmer>javac "C:\Documents and Settings\rohmer\exo83.j
ava"
C:\Documents and Settings\rohmer\exo83.java:19: estegal(int[],int[],int[],int[])
in exo83 cannot be applied to (int[],int[])
Terminal.ecrireStringln(" voici le resultat de comparaison de t1 = t2" +
estegal(t1,t2));
^
C:\Documents and Settings\rohmer\exo83.java:20: estegal(int[],int[],int[],int[])
in exo83 cannot be applied to (int[],int[])
Terminal.ecrireStringln(" voici le resultat de comparaison de t1 = t3" +
estegal(t1,t3));
^
C:\Documents and Settings\rohmer\exo83.java:21: estegal(int[],int[],int[],int[])
in exo83 cannot be applied to (int[],int[])
Terminal.ecrireStringln(" voici le resultat de comparaison de " + t1 +
" et de " + t4 + estegal(t1,t4));
^
3 errors
??????
		
		
        


   


  Répondre avec citation




 
 
 


Partager