test.java

来自「网络机器人」· Java 代码 · 共 31 行

JAVA
31
字号
import com.heaton.bot.translate.*;/** * Example program from Chapter 4 * Programming Spiders, Bots and Aggregators in Java * Copyright 2001 by Jeff Heaton * * * This is just a simple class used to test the * Translate class. Not used by this example. * * @author Jeff Heaton * @version 1.0 */public class Test {  /**   * Program entry point.   *   * @param args No command line paramters are used.   */  public static void main(String args[])  {    try {      String str = Translate.translate("http://www.jeffheaton.com","trans.jsp");      System.out.println( str );    } catch ( Exception e ) {    }  }}

⌨️ 快捷键说明

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