📄 main.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package laforehash;import java.util.Scanner;import java.io.*;/////////////////////////////////////////////////////////////////** * * @author Usuario */ /** * @param args the command line arguments */ class Lafore {private static HashTable theHashTable = new HashTable(10);private static Arquivos file = new Arquivos();private static SortedList listavagas= new SortedList();private static SortedList listaempresas= new SortedList(); private static Menu menu = new Menu();public static void main(String[] args) throws IOException { System.out.println("Inicializar arquivos previos? Sim ou Nao "); Scanner escolha = new Scanner(System.in); String choice = escolha.nextLine(); if(choice.equalsIgnoreCase("sim")) { try { theHashTable = file.filecandidato(); listaempresas = file.fileempresas(); listavagas = file.filesolicitacoes(); } catch(FileNotFoundException e) { System.out.println("Ocorreu um erro durante a leitura do arquivo" + " - " + e.getMessage()); int erro = 0; System.exit(erro); } } menu.escolha(theHashTable, listavagas, listaempresas);} //-------------------------------------------------------------//-------------------------------------------------------------}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -