I have a problem with this code. When i run it...the program just stops at the last drawBox. The cursor stays there and it doesn't prompt me to "press any key to continue..."
how do i fix this? i have more parts to my program but it won't run after the last method in this excerpt of my code is executed.
CODE
// draw four boxes
drawBox();
System.out.print("Enter height: ");
int height1 = keyboard.nextInt();
System.out.println();
System.out.print("Enter width: ");
int width1 = keyboard.nextInt();
System.out.println();
drawBox(height1,width1);
System.out.print("Enter height: ");
int height2 = keyboard.nextInt();
System.out.println();
System.out.print("Enter width: ");
int width2 = keyboard.nextInt();
drawBox(height2,width2, '+');
System.out.print("Enter height: ");
int height3 = keyboard.nextInt();
System.out.println();
System.out.print("Enter width: ");
int width3 = keyboard.nextInt();
System.out.println();
drawBox(height3,width3, '#');
This post has been edited by jojo515: 19 Feb, 2008 - 01:37 AM