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

A quick cheat sheet to Agentic AI

 A quick cheat sheet to Agentic AI Want a quick Agentic AI cheatsheet to get clarity in minutes, not hours? This one-pager breaks down the e...