java - get user input assign it to String -


is possible assign user-input string? same way assign double:

scanner s = new scanner(system.in); system.out.println("enter here value of x: "); double x = s.nextdouble(); 

and possible make jframe, , name jframe string, in eclipse if ask title jframe, can enter console, , jframe name change(or have update frame, if so, how?)

i beginner please keep simple possible(i netherlands sorry bad englisch).

just read docs of scanner class. state there 3 methods return strings user input:

next(): string next(pattern pattern): string next(string pattern): string nextline(): string 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -