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

Is arraylist an object in java?

1228


Explain what access modifiers can be used for variables?

1107


Can the garbage collection be forced by any means?

1044


What is meant by flickering?

1130


What is the purpose of extern variable?

1057


What is outofmemoryerror in java?

1075


Can we create a constructor in abstract class?

1038


What is meant by JVM? Is JVM platform independent or not?

1128


Define class?

1126


'A class is a template for an object' explain this statement.

1099


How do you include a string in java?

1055


Is math class static in java?

1155


What is public/private protected in java?

1083


What is a website container?

1006


Explain importance of finally block in java?

1081