Mine
public text v1 · immutablepublic 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}
};
for (int row = 0; row<payRollData.length; ++row)
{
System.out.print(names[row]);
for (int col = 0; col<payRollData[row].length; ++col)
{
System.out.printf("%8d", payRollData[row][col]);
}
System.out.println();
}
}
}