Posted By

karellism on 04/22/13


Tagged

String integer


Versions (?)

Converting String to Integer & Integer to String


 / Published in: Java
 

Converting String to Integer & Integer to String

  1. String a = String.valueOf(2); //integer to numeric string
  2. int i = Integer.parseInt(a); //numeric string to an int

Report this snippet  

You need to login to post a comment.