Tuesday, December 03, 2013

Converting Strings to int and int to String


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

No comments:

Post a Comment

🚀 Top 21 AI Tools To Boost Your Work in 2025

  In today’s fast-paced digital world, staying productive and competitive means leveraging the best tools available — and AI is leading the ...