The answers are coming out correctly. They are just not separated by columns. I need them to be in different columns by numbers, multiples of 2, and multiples of 10.
String head1 = "Number: ";
String head2 = "Multiplied by 2: ";
String head3 = "Multiplied by 10: ";
int numberCounter; // Numbers 0 through 10.
int byTen; // Stores the number multiplied by 10.
int byTwo; // Stores the number multiplied by 2.
final int NUM_LOOPS = 10; // Constant used to control loop.
// This is the work done in the housekeeping() method
System.out.println("0 through 10 multiplied by 2 and by 10" + "\n");
// This is the work done in the detailLoop() method
System.out.print(head1);
System.out.print(head2);
System.out.print(head3 + "\n");
// Initialize loop control variable.
numberCounter = 0;
while(numberCounter <= NUM_LOOPS){
System.out.println(numberCounter);
byTwo = numberCounter * 2;
System.out.println(byTwo);
byTen = numberCounter * 10;
System.out.println(byTen);
numberCounter++;
}
// Write your counter controlled while loop here
// This is the work done in the endOfJob() method
System.exit(0);
} // End of main() method.