?? ex2.java
字號:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package chenchao4;import java.io.*;import java.util.*;/** * * @author williechen */interface JavaLanguage { String[] KEY_WORDS = {"auto", "break", "case", "char", "const", "continue", "default", "do", "double", "else", "enum", "float", "for", "goto", "if", "int", "long", "", "return", "short", "signed", "sizeof", "static", "struct", "switch", "typedef", "union", "unsigned", "void", "volatile", "while", "main" }; String[] OPERATERS = {"+", "-", "*", "/", "%", "=", ".", ">", "<", "?"}; String[] SEPRATORS = {";", ":", "{", "}", "(", ")", "[", "]"};}public class Ex2 implements JavaLanguage { private String fileName = new String(); private ArrayList<String> lines = new ArrayList<String>(); private void loadFileIntoLines() { try { File file = new File(fileName); FileReader fReader = new FileReader(file); Scanner sc = new Scanner(fReader); while (sc.hasNextLine()) { lines.add(sc.nextLine()); } sc.close(); fReader.close(); } catch (IOException ioe) { System.out.println(ioe.getStackTrace()); } } private void porRun() //分析過程 { } public Ex2() { } public static void main(String[] args) { Ex2 t = new Ex2(); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -