//@ferfrancuito
int j=0;
        //this evaluates 3 lines from the string array
        for(int w=0;w<3;w++) //main for
            {  
        //asign values of w line to a new string  
        String cadena= lineas2[w];
        cadena+=" ";
        int t= cadena.length();
        int num=0;
        
        i=0;
       //this while checks if there's an space at the beginning of the string 
       while((i<t) && cadena.charAt(i)==' ')
        i++;
        while(i<t) //main while
        {
            for(; cadena.charAt(i)!=' ';i++)
            num=num*10+((int)cadena.charAt(i)-48); //ascii
            intArray[j]=num;
            num=0;
            j++;
            /// if cadena has spaces after getting a number 
            /// increment i until we find another number in string
               while((i<t) && (cadena.charAt(i)==' '))
                i++;
                }//main while
                    }//main for