How to convert string to int in java?



How to convert string to int in java?..

Answer / hrindows@gmail.com

"class Scratch{
public static void main(String[] args){
String str = ""50"";
System.out.println( Integer.parseInt( str )); // Integer.parseInt()
}
}"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How is java created?

0 Answers  


What is the difference between object oriented programming language and object based programming language?

0 Answers  


What is the meaning of variable in research?

0 Answers  


Do I need java on my pc?

0 Answers  


Is main a function?

0 Answers  






What are the different http methods?

0 Answers  


How do you set security in applets?

1 Answers   Wipro,


What is the difference between preemptive scheduling and time slicing?

0 Answers  


Features of Java?

4 Answers  


How does multithreading take place on a computer with a single cpu in java programming?

0 Answers  


When will we use them?

0 Answers  


What are the main uses of java?

0 Answers  


Categories