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 difference between the paint() and repaint() methods?
What does exclamation mean in java?
What is arraylist e?
What is a method header?
Write a program to print fibonacci series up to count 10.
Write a program to print count of empty strings in java 8?
What restrictions are placed on method overriding?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
Who found java?
Can we create object of static class?
Explain how can you debug the Java code?
How to sort numbers in java without array?
Explain the transient field modifier?
What do you understand by weak reference?
What is starvation?