Automatic wrap after entering the data (not pressing Enter)

zhaozj2021-02-16  55

purpose:

Displayed on the screen

Arry [0] = xx

Arry [1] = xx

...............

XX is input data

The data is required to be automatically wrap after the data data xx, because console.read () does not bring a wrap function, and console.readLine () can provide a wrap function, but after pressing the return, the data is automatically submitted! So, after I enter the data of Arry [0], there is no data to enter the data of Arry [1], the program is automatically completed and submitted, depressed ~~~

Help! ! ! !

转载请注明原文地址:https://www.9cbs.com/read-17562.html

New Post(0)