Skip to content

Commit ea54cce

Browse files
committed
Wrapper Class Exp 2
1 parent e99af53 commit ea54cce

File tree

1 file changed

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

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
public class Exp2 {
2+
public static void main(String[] args) {
3+
float a = 1.8;
4+
FLoat i = Float.valueOf(a);
5+
String str = Float.toString(i);
6+
float j = Float.parseFloat(str);
7+
String str1 = String.valueOf(j);
8+
Float j = Float.valueOf(str1);
9+
float f = Float.valueOf(j);
10+
System.out.println(a);
11+
System.out.println(i);
12+
System.out.println(str);
13+
System.out.println(str1);
14+
System.out.println(j);
15+
System.out.println(f);
16+
}

0 commit comments

Comments
 (0)