In my computer science class we were asked to create a program that would prompt the user to enter how many rows, columns, and what symbol they would like printed in a "magic box" and to store each of these variables and print them their very own magic box using a nested for loop. My program compiles properly and prints the correct box based on my inputs, but it does not print two of my print statements. It will print the first three statements (the ones prompting the user to enter certain things), but does not print the statements
Here comes the magic...Here's your very own magic box
and
This magic box brought to you by Beth Tanner."
I have tried everything I can think of and still cannot get these statements to print, any help would be greatly appreciated. I am including my program below.
import java.util.Scanner;
public class MagicBox {
public static void main(String[] args) {
Scanner input= new Scanner(System.in);
System.out.println("How many rows would you like in your box?");
int rows = input.nextInt();
System.out.println("How many columns would you like in your box?");
int columns = input.nextInt();
System.out.println("What symbol would you like in your box?");
String symbol = input.next();
System.out.println("Here comes the magic...\nHere's your very own magic box!");
int count1;
int count2;
for(count1 = 1; count1 <= rows; count1++)
for (count2 = 1; count2 <= columns; count2++)
System.out.print(symbol);
System.out.println();
System.out.println("This magic box brought to you by Beth Tanner.");
} // end main
} // end class