How to convert String into primitive datatype.

Answer Posted / niranjan sahoo

by using parsing methods of the respective primitive type like if we want to convert into int then use parseint() , if float then use parsefloat()...

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array and arraylist in java?

750


How do you check if two given string are anagrams?

728


What is final keyword in java? Give an example.

759


Is java developer a good career?

763


What are the different ways to handle exceptions?

731


What are the legal parameters?

694


What is the difference between public, private, protected, and friend access?

771


What is java object name?

729


Write a program to print the pattern given below

703


Can we sort arraylist in java?

769


How to add menushortcut to menu item?

736


What is the disadvantage of synchronization?

753


What is array list in java?

801


What is void in java?

797


What is nested loop? What is dangling else condition in it?

801