In String class there is somemethod valueOf() you can try. 

解决方案 »

  1.   

    每一个问题,总有错误提示吧。贴出来。第二个问题:你查一下jdk docs里的String类的用法。
      

  2.   

    Integer.ParseInt("123");
    Integer integer = Integer.ParseInt("123");
    int i = integer.intValue(); //大致是这么个方法
      

  3.   

    jsp中的String型转成int型用(int)好象不行啊?,另外,java中对字符串操作的函数都在那呀 Integer integer = Integer.ParseInt("123");
    int i = integer.intValue(); //大致是这么个方法
    Re: java中对字符串操作的函数都在那呀 
      what ? 自动提示不是有吗?
     
      

  4.   

    int xx = Integer.parseInt("123");
    String tt = xx.toString()
    String yy = String.valueOf(xx)
      

  5.   

    String s = "string";
    Integer integer = new Integer();
    integer = Integer.valueOf( s );
    int i = integer.intValue();
    Java中对String的操作很简单,可参考资料。