Rob Spoor wrote:You need a nested loop. This can be done using the traditional way, or with the for-each loop: // traditional way // keep a reference so you don't need to call the method each time String[][] array = mConn.getMatrixQuantityArray(); for (int ma = 0; ma < array.length; ma++) { for (int mb = 0; mb < array[ma].length; mb++) { String p1 = array[ma][mb]; } } // for-each loop: for (String[] row: mConn.getMatrixQuantityArray()) { for (String p1: row) { } }