Skip to content

Commit d2f5f8c

Browse files
committed
Wrapper Class Exp 1
1 parent ab221b7 commit d2f5f8c

File tree

1 file changed

+18
-0
lines changed
  • Lab Experiments/Experiment 8/Wrapper Classes

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)