I'm a newer in Java and now about to use adjacency matrix(2D array) to implement a graph, but encountered some problems, pls help me,thanks. following are partly codes.

// following codes...