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

📄 begin2.java

📁 教材订购系统
💻 JAVA
字号:
package program;



import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;





//import fin.Build;
//import fin.Password;


public class Begin2 {

	public  Begin2() throws IOException{
		
		
		File f_obid=new File("D:/Java_Work/BookManager/program/id.txt");
		
		 try {
				if(f_obid.createNewFile()){
					 System.out.println( f_obid.getAbsolutePath());
					 
				 }
			} catch (IOException e) {
				// TODO 自动生成 catch 块
				e.printStackTrace();
			};
			
			
			 
		
			File f_obkey=new File("D:/Java_Work/BookManager/program/key.txt");
			
			try {
					if(f_obkey.createNewFile()){
						 System.out.println(" f_obkey.getAbsolutePath()");
						 
					 }
				} catch (IOException e) {
					// TODO 自动生成 catch 块
					e.printStackTrace();
				};
		
		
		
		
		
		FileInputStream fis=new FileInputStream(f_obid);
		BufferedInputStream bis=new BufferedInputStream(fis);
		
		FileInputStream fos=new FileInputStream(f_obkey);
		BufferedInputStream bos=new BufferedInputStream(fos);
		int f_data1,f_data2;	

	     f_data1=bis.read();
	     f_data2=bos.read();
	     
	     if(f_data1==-1||f_data2==-1)
	     {
	    	 bis.close();
	 		 bos.close();
	    	 Build n=new Build();
	     }
	     else
	     {
	    	 bis.close();
	 		 bos.close();
	    	 Password win = new Password();
	    	 
	     }	
		
	}	
	
}

⌨️ 快捷键说明

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