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

📄 driver.java

📁 《深入浅出设计模式》的完整源代码
💻 JAVA
字号:
package taxonomy;import java.io.*;/**  A simple driver program for our TreeGUI application.  @see TreeGUI*/public class Driver {  public static void main (String[] args) {    try {      // establish a way to read strings from a taxonomy      // input file specified as a command line argument      // build a FileReader, then a BufferedReader, then a StreamTokenizer      FileReader fr = new FileReader("tax.data");      BufferedReader br = new BufferedReader(fr);      StreamTokenizer st = new StreamTokenizer(br);      // construct and display the TreeGUI      // build the initial tree displayed based on the contents      // of the stream tokenizer      TreeGUI t = new TreeGUI(st);      t.setVisible(true);    } catch (IOException e) {      e.printStackTrace();    }  }}

⌨️ 快捷键说明

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