Reading a number from the keyboard

DIRECTIONS:

Construct a working program by dragging & dropping lines from the left to the right. You'll need to change the order of the lines and you'll need to adjust the indentation correctly.

You should tell the user that they need to type in a number, then you should attempt to get the number that the user types.  If the user did type in a number then you should print that number out.  If the user did NOT type in a number then you should print a message telling them that.  After all that make sure that you clear any remaining input!

import becker.robots.*;
import java.util.*;

public class TypeANumber extends Object
{
    public static void main(String[] args)
    {			   
		City seattle = new City(); // do this first
		Robot mary = new Robot(seattle, 1, 1, Direction.EAST, 0); // do this second
		
		      // FIX THIS PART!!!
		
		keyboard.nextLine(); // DON'T FORGET TO CLEAR ANY REMAINING INPUT!!
    }
}

Check your work by clicking on the button labeled "Get Feedback" at the bottom of this page.