How to convert String object to Integer object in Java

1 Answer

0 votes
package javaapplication1;

public class JavaApplication1 {

    public static void main(String[] args) {

        String s = "13333";
        
        Integer i = Integer.valueOf(s);
        System.out.println(i);
    }
}
   
/*
      
run:
      
13333
  
*/

 



answered Nov 6, 2016 by avibootz

Related questions

...