Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to convert String into primitive datatype.

Answer Posted / akshya kumar

using the wrapper classes, by using the function in
following way:

int i_var = Integer.parseInt(string_var); //and as in
answer #2

Integer, Float, Long are wrapper classes predefined in JAVA
with methods parseInt(), parseFloat etc respectively.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command from the jdk compiles a java program?

993


What is the history of java?

996


Who is the owner of java?

1003


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1106


Can an interface have a class?

1002


What is an off by one error in java?

956


What is the longest unicode character?

1156


What is javac_g?

1018


Can we define constructor in inner class?

1003


How can you generate random numbers in java?

1048


What are the important methods of java exception class?

1133


Can you make a constructor final?

1040


What is meant by main method?

1064


How do I stop concurrentmodificationexception?

1032


How we can skip finally block of exception even if some exception occurs in the exception block in java?

948