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

Distributed Transactions

What is a distributed transaction?  Transactions that span over multiple physical systems or computers over the network, are simply termed D...