public class twoDArray2 { public static void main (String args[]) { String[] names = { "Pete", "Cathy", "Graham", "Claude", "Dave" }; int[][] payRollData = { {437, 6, 25000}, {525, 4, 60000}, {214, 3, 40000}, {639, 4, 35000}, {309, 5, 15000} }; int highestEmployeeNumber = 0; int storedIndex = 0; for (int i = 0; i < payRollData.length; i++) { if (highestEmployeeNumber < payRollData[i][0]) { highestEmployeeNumber = payRollData[i][0]; storedIndex = i; } } System.out.println("Highest employee #: " + payRollData[storedIndex][0]); System.out.println("The name of that employee: " + names[storedIndex]); }