Hello there

statement number one of your program says that int [] aero
that means aero is a one dimensional array
ans the statement where the error occurred says aero[i][j] that is two
dimensional notation
so remove [j] from the statement where error occurred and also
remove the inner for loop "for(int j=0;j<aero.length;j++) "
that should solve the error problem


On Sep 16, 11:17 pm, David Candia <[email protected]> wrote:
> public static void cargarAirline(int [] aero){        BufferedReader dataIn = 
> new BufferedReader(new InputStreamReader(System.in));                for (int 
> i=0;i<aero.length;i++){            System.out.println("ORIGEM"+Cities[i]);    
>         for (int j=0;j<aero.length;j++){                
> System.out.println("DESTINO"+Cities[i] + "Nro de vuelo :");                
> int b=Integer.parseInt(dataIn.readLine());                i                
> aero[i][j]=b; //message error : array required, but int found            }    
>     }    }    i dont know how save a value into a array, could you help me? 
> please
> _________________________________________________________________
> Discover the new Windows 
> Vistahttp://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to