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

📄 initwrite.java

📁 这是一个URL检索的算法
💻 JAVA
字号:

import java.io.*;
public class temp
{
	
public static void main(String []args)
{	

  
  int temp;
  temp=(int)Math.pow(2,10);
  int b[]=new int[temp];
    

  try{

    //RandomAccessFile f=new RandomAccessFile("D:\\download\\hashtempFile1.txt","rw");
    //RandomAccessFile f1=new RandomAccessFile("D:\\download\\hashtempFile2.txt","rw");
	RandomAccessFile f=new RandomAccessFile("D:\\download\\hashtempFile3.txt","rw");        
    
	for(int i=0;i<temp;i++)
	{ f.writeInt(b[i]);
		  
	}
	for(int i=0;i<temp;i++)
	{ f.writeInt(b[i]);
		  
	}
	System.out.println("this is "+f.length());
	 
	 
	 
	 
	f.close(); 
	 }
	catch(IOException e)			{System.out.println(e);}
	
	
}	

}

⌨️ 快捷键说明

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