> I just wonder how i can wait for the user to enter
> some keys folowed by Enter and get the string into a
> String.
>
> System.in.?
Better yet, I'll do you a favor and point you to the Java API documentation, where you can find simple things like this yourself now and in the future.
http://java.sun.com/j2se/1.5.0/docs/api/index.html
And here's the standard I/O tutorial:
http://java.sun.com/docs/books/tutorial/essential/io/index.html