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 ab221b7 commit d2f5f8cCopy full SHA for d2f5f8c
Lab Experiments/Experiment 8/Wrapper Classes/Exp1.java
@@ -0,0 +1,18 @@
1
+import java.util.*;
2
+public class Exp1 {
3
+ public static void main(String[] args) {
4
+ int a =10;
5
+ Integer i = Integer.valueOf(a);
6
+ String str = Integer.toString(i);
7
+ int s = Integer.parseInt(str);
8
+ String str1 = String.valueOf(a);
9
+ Integer j = Integer.valueOf(str1);
10
+ int f = Integer.valueOf(j);
11
+ System.out.println(a);
12
+ System.out.println(str);
13
+ System.out.println(s);
14
+ System.out.println(str1);
15
+ System.out.println(j);
16
+ System.out.println(f);
17
+ }
18
+}
0 commit comments