answersLogoWhite

0

I don't know excactly what you are meaning by input from keyboard. Do you mean if they enter a key, something are going to happen or do you mean that they can type in some text and then you are trying to get the text they have typed?

If you are trying to get something happen when they press a key, use a KeyListener.

If you are going to get some text they are typing into your program you have to use scanner. Scanner can be imported from java.util.Scanner.

User Avatar

Wiki User

12y ago

What else can I help you with?