我想实现以下目标:
BufferedInputStream is = new BufferedInputStream(System.in);
int c = 0;
while((c=is.read())!=-1)
Files.copy(is, path3, StandardCopyOption.REPLACE_EXISTING);
然而,它永远停留在等待 System.in 中。有什么解决方法吗?
提前致谢。
我想实现以下目标:
BufferedInputStream is = new BufferedInputStream(System.in);
int c = 0;
while((c=is.read())!=-1)
Files.copy(is, path3, StandardCopyOption.REPLACE_EXISTING);
然而,它永远停留在等待 System.in 中。有什么解决方法吗?
提前致谢。