We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3918c84 commit 5b90eb0Copy full SHA for 5b90eb0
Conversion1.java
@@ -1,5 +1,5 @@
1
2
-//############# String to Integer Conversion ###############################
+//############# String to Integer Using parseInt() method Conversion ###############################
3
4
public class Conversion1
5
{
@@ -10,3 +10,16 @@ public static void main(String[] args)
10
System.out.println(n);
11
}
12
13
+
14
15
+//############# String to Integer Using valueOf() method Conversion ###############################
16
17
18
+public class Conversion1{
19
+ public static void main(String args[])
20
+ {
21
+ String s="6000";
22
+ Integer i=Integer.valueOf(s);
23
+ System.out.println(i);
24
+ }
25
+}
0 commit comments