main.java

来自「Program that uses a doc as database, and」· Java 代码 · 共 59 行

JAVA
59
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?