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

📄

📁 一共五个源代码文件,,分别实现哈希表遍历,,播放动画,,写文件,,带对话框的窗口和访问数据库!
💻
字号:
import java.io.*;
public class Example
{  
   public static void main(String args[ ])
   { 
      File file=new File("hello.txt");
      char b[]="欢迎welcome".toCharArray();
      try{
           FileWriter  out=new  FileWriter(file);
           out.write(b);
           out.write("来到北京!");
           out.close();
           FileReader  in=new FileReader(file);
           int n=0;
           while((n=in.read(b,0,2))!=-1)
           {
               String str=new String(b,0,2);
               System.out.println(str);
           }
           in.close();
         }
      catch(IOException e)
         {
           System.out.println(e);
         }  
   }
}

⌨️ 快捷键说明

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