Look where your code writes "found it". That i value will be the row you need.
The row where you found the correct ID is i. So now you just need to output the j's you want.
Type: Posts; User: Starstreak
Look where your code writes "found it". That i value will be the row you need.
The row where you found the correct ID is i. So now you just need to output the j's you want.
The use of labels in Java is generally discouraged if we can help it.
If the program tries to find ID-4, we get the Student[3][0] {Student[i][j]} where 3 is the row and 0 is the column containing...
Do you need to use a 2-D array? Why not use a normal array for each record (read from a file perhaps)?