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

📄 ex2.java

📁 讲述各种各样的java初始编程 了解编程
💻 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 + -