Problem 1 encountered when Java creates an object of a class: Scanner outputs the input string

To create a class for student entry, you need to use java.util.Scanner

I have only used nextInt() before, I don't know how to read the input string


nextLine()




References:

http://bbs.itheima.com/thread-90856-1-1.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325500611&siteId=291194637