Skip to content

Commit 015be63

Browse files
String wrapper
1 parent eaa071d commit 015be63

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

String wrapper

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
//in this we can store the value in the wrapper class
3+
public class wrapperstr {
4+
5+
public static void main(String[] args)
6+
{
7+
Integer obj=5;
8+
System.out.println("the Integer obj value it is ="+obj);
9+
10+
System.out.println("max value is the = "+Integer.MAX_VALUE);
11+
System.out.println("the min value is the = "+Integer.MIN_VALUE);
12+
13+
int i=Integer.parseInt("11");
14+
System.out.println("parse int is = "+i);
15+
System.out.println("to binary value is = "+Integer.toBinaryString(i));
16+
Integer obj2=Integer.valueOf("123");
17+
System.out.println("value of the obj2 ="+obj2);
18+
19+
Float j=obj2.floatValue();
20+
System.out.println("j = "+j);
21+
22+
}
23+
}

0 commit comments

Comments
 (0)