Howdy

How does one close the input from a BufferedReader? For instance:

Code:
PortNumber = Text.readInt ( KeyIn );
Print ( PortNumber );
just allows me to enter a number but when I press Enter, the cursor merely skips to a new line instead of printing to the screen. Anyone any ideas?

(NB: I'm using the javagently Text class and Print is another method elsewhere in the code that basically just prints the Integer)