我想从txt文件中读取一些int值。所有这些都在一条线上。values.push(parseInt(value, 10));}); Then Im getting this warning 但是当我添加console.log以在控制台中显示这些值时=> { values.push(parseInt(value, 10
我使用下面的代码来读取txt文件。System.out.println("Error while reading file line by line:" + e.getMessage());我有"1.我的名字是bob \n 2.帮助你\n 3.正在测试“txt文件中的所有内容都在一行上..但当我将其读入java时,它在一行中打印所有内容,而不是&