bonjour, j'ai un probleme de compilation please help...
Code :
- class chiffreAffaire{
- public static void main(String[] arguments){
- int[] paris={1000,1500,2500};
- int[] newyork=new int[3];
- newyork={3000,2000,4500};
- int[] total=new int[paris.length];
- int somme=0;
- for(int i=0;i<paris.length;i++){
- total[i]=paris[i]+newyork[i];
- System.out.println("production: "+(i+2002+" "+total[i]));
- somme+=total[i];
- }
- System.out.println("production moyenne : "+somme/paris.length);
- }
- }
|
voici l'erreur:
--------------------Configuration: j2sdk1.4.2_04 <Default>--------------------
C:\jv\JCreator LE\MyProjects\ok.java:5: illegal start of expression
newyork={3000,2000,4500};
^
1 error
merci de votre aide