简体   繁体   中英

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

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM