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 string
s user input:
next(): string next(pattern pattern): string next(string pattern): string nextline(): string
Comments
Post a Comment