⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example10_4.java

📁 不错的教程 适合中高级人员的使用
💻 JAVA
字号:
import java.io.*;
class Example10_4
{  public static void main(String args[])
   {  int b;
      byte tom[]=new byte[25];
      try{  File f=new File("Example10_3.java");
            FileInputStream in=new FileInputStream(f);
            while((b=in.read(tom,0,25))!=-1) 
                {
                   String s=new String (tom,0,b);
                   System.out.println(s);                   
                }
           in.close();
         }
	  catch(Exception e){System.out.println("File read exception"+e);}
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -