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

What is a null point?

0 Answers  


How to make a class immutable?

15 Answers   Bosch, TSYS,


Why do we use predicate in java?

0 Answers  


What is the middleware?

2 Answers  


Can an interface extands a class?

5 Answers  






What is a Null object?

1 Answers   Wipro,


What things should be kept in mind while creating your own exceptions in java?

0 Answers  


What is int lol?

0 Answers  


Why are variables important in research?

0 Answers  


What is data structure in java?

0 Answers  


What is a method type?

0 Answers  


According to java operator precedence, which operator is considered to be with highest precedence?

0 Answers  


Categories