代码如下:package 练习2;import java.io.*;public class Main { public static void main(String[] args) throws IOException { int ch; File file1=new File("D:\\文件用\\JAVA练习\\newFile.txt"); try{ FileInputStream fin=new FileInputStream(file1); System.out.println("文件信息为:"); ch=fin.read(); while(ch!=-1) { System.out.print((char)ch); ch=fin.read(); } fin.close(); } catch(FileNotFoundException e) { System.out.println(e); } catch(IOException e) { System.out.println(e); } }} 我想问 为什么 ch要!=-1呢? 就是那个 while(ch!=-1)还有希望有人能给商 那些异常 入 IOException 等的中文解析给我 我加分!!!