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

we can also use valueOf method of wrapper classes like:

int i_var = Integer.valueOf(string_var);
float f_var = Float.valueOf(string_vatr);

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a constructor have different name than a class name in java?

1195


What is the generic function?

986


How do you declare an empty string?

1063


What is the difference between notify and notifyall method?

1220


a thread is runnable, how does that work? : Java thread

1013


How do you sort in ascending order in java?

874


What are the benefits of immutable objects?

1009


Explain about features of local inner class?

1134


When will we prefer to use set and list in java and why?

964


What do you mean by Hash Map and Hash Table?

1096


Can list be null in java?

1039


What are features of java?

1024


Give reasons supporting that string is immutable.

942


What do you understand by java virtual machine?

1197


What is stream api in java8?

1186