Integer i;
int k=i.intValue();

解决方案 »

  1.   

    来晚了,如上。
     Integer.intValue();
      

  2.   

    晚了一步不过不能白来,告诉你string转化成int的方法吧
     
    int i=Integer.intValue(string);
      

  3.   

    补充楼上的(String->int)
    String str="10";
    Integer it=new Interger(str);
    int i=it.intValue();
      

  4.   


    String->int为什么不用static int parseInt(String s) Parses the string argument as a signed decimal integer.
      

  5.   

    Integer i;
    int k=i.intValue();
    就是!其实建议你在运用前可以看看有关这些你要用的类文件的api文挡,
    很多你都能从中找到你需要的!
      

  6.   

    Str-->int
    int i = Integer.intValue(str);
    Integer-->int
    int k = i.intValue();