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

Understanding Essential DNS Record Types for Web Administrators

  Understanding Essential DNS Record Types for Web Administrators Introduction The Domain Name System (DNS) acts as the backbone of the inte...