Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为班级做一些事情,我需要知道如何通过 nextLine() 方法获取用户输入的字符串并将其用作 csv 文件的路径。
示例输出如下所示:
Enter the name of the input file: /Users/user/file.csv
这将定义 java 中的 csv 读取并由扫描仪实例分隔。