int [] aero - is a single-dimensional array of int.
But you refered to it like to two-dimensional array: aero[i][j]

it had to be like that to discard the error

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[i].length;j++){
                System.out.println("DESTINO"+Cities[i] + "Nro de
vuelo :");
                int b=Integer.parseInt(dataIn.readLine());
                //i
                aero[i][j]=b; //shouldn't be error message : array
required, but int found
            }
        }
    }

On Sep 16, 10: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