Robert
Robert

Reputation: 8609

output as part of input stream

Is there a way to output some text and allow a user to edit and submit as System.in? Obviously System.out.print is not editable...

Eg.

system outputs:

Hallo

user edits to:

Hello

system echos:

Hello

Upvotes: 2

Views: 130

Answers (1)

crazyscot
crazyscot

Reputation: 11989

Not directly via System, I don't think. You'll need to interface with the user in some way, either via a GUI or a terminal handling library like curses (if such a thing exists for Java).

Upvotes: 1

Related Questions