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

What are the types of strings?

1093


What is ‘has a’’ relationship in java?

1280


What is another word for methodology?

1077


How to declare an arraylist in java?

1195


What are the different types of inheritance in java?

1043


What are the types of web technologies?

1089


Difference between character constant and string constant in java ?

1062


What is namespace in java?

1062


what is abstract class in Java?

1174


What are heterogeneous objects?

1087


Explain the difference between call by refrence and call by value?

1078


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

1143


What is difference between stringbuffer and string?

1016


Describe the syntax of multiple inheritance? When do we use such an inheritance?

1146


What does the string method compareto () do?

1116