Answer Posted / vikki
using parseInt() method for example
//String to primitive types
int iVal = Integer.parseInt(str);
long lVal = Long.parseLong(str);
float fVal = Float.parseFloat(str);
double dVal = Double.parseDouble(str);
| Is This Answer Correct ? | 32 Yes | 5 No |
Post New Answer View All Answers
What is the SimpleTimeZone class?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
Is java a utf 8 string?
What is a literal coding?
What is immutable state?
Who is the owner of java?
What is a native method in java programming?
How to create an immutable class?
What is an object in java?
What do you understand by synchronization?
How many types of the indexof method are there for strings?
What are the features of java?
Explain the difference between comparator and comparable in java?
Explain the difference between intermediate and terminal operations in java8?
What are the two types of exceptions in java? Which are the differences between them?