yeiiii!!!, it was a simple mistake, but a HUGE mistake too... !! THANK YOU!!...
I removed the loop I had, it was increasing the number i entered, so it was not helping at all....
[code = java]
public int verMatriz(int i){
for(i = 0; i < 4; i++){
if(i == 0)
a = matrizAsignaturas[i];
}
System.out.println(a);
return i;
}
[/code]
and it is now,
[code = java]
public int verMatriz(int i){
if(i == 0) {
a = matrizAsignaturas[i];
}
else if (i == 1){
a = matrizAsignaturas[i];
}
else if( i == 2){
a = matrizAsignaturas[i];
}
else if(i == 3){
a = matrizAsignaturas[i];
}
else {
System.exit(0);
}
System.out.println(a);
return i;
}
[/code]
Yeiii! thank you!!
I will continue with a 2D array now
--- Update ---
Thanks GregBrannon and everyone! I was able to create the 2D array and print it just as I wanted.
. This thread is solved ! Thanks again!