Say for example I had the following:
int[][] courses = {
{1, 0},
{2, 0},
{3, 1},
{3, 2},
};
Now don't the first index represents x, and second index represents y? For example, courses[x][y], so courses[0][1], should print 2, but actually prints 0, why is that?
{{1,2,3,3},{0,0,1,2}}