/** A simple endpoint method that takes a name and says Hi back */
  @ApiMethod(name = "getJoke")
  public MyBean sayHi() {
    MyBean response = new MyBean();
    response.setData(MyClass.getJokes());

    return response;
  }
示例#2
0
  public static void main(String[] args) {
    MyClass myClass = new MyClass();
    myClass.change(myClass.str);
    System.out.println(myClass.str);

    // String str = "aaa:astr";

    // String[] strs = str.split(";");

    // System.out.println(Arrays.toString(strs)+strs.length);

    // getRealFileNameFromUrl("http://dlsw.baidu.com/sw-search-sp/soft/3a/12350/QQ_V7.4.15197.0_setup.1436951158.exe");

    //        String str = "\r\naaaa      ";
    //
    //        //test(str);
    //        System.out.println(str.length());
    //
    //       // str = str.replace("\\s","");
    //
    //
    //        str = str.replaceAll("\\s","");
    //        System.out.println(str.length());
    //        System.out.println(str);

    //        System.out.print("fffff");
    //
    //        try {
    //            Class clazz = Class.forName("");
    //            Constructor ct = clazz.getConstructor(Context.class);
    //            ct.newInstance(null);
    //        } catch (ClassNotFoundException e) {
    //            e.printStackTrace();
    //        } catch (NoSuchMethodException e) {
    //            e.printStackTrace();
    //        } catch (InvocationTargetException e) {
    //            e.printStackTrace();
    //        } catch (InstantiationException e) {
    //            e.printStackTrace();
    //        } catch (IllegalAccessException e) {
    //            e.printStackTrace();
    //        }

    // Android andoird = Class.forName("").newInstance();
  }