package com.wj.demo04;
public class TestInteger {
public static void main(String[] args) {
fun11();
}
private static void fun11() {
Integer a=20;
Integer b=20;
Integer a3=2000;
Integer b3=2000;
Integer a1=new Integer(20);
Integer b1=new Integer(20);
Integer a2=new Integer(2000);
Integer b2=new Integer(2000);
int a4=20;
int b4=20;
int a5=2000;
int b5=2000;
System.out.println(a==b);
System.out.println(a3==b3);
System.out.println("--------------------");
System.out.println(a1==b1);
System.out.println(a2==b2);
System.out.println(a4==b4);
System.out.println(a5==b5);
}
private static void fun10() {
String str="123";
int x=Integer.parseInt(str);
Integer y=Integer.parseInt(str);
}
private static void fun8() {
Integer i=Integer.valueOf("10");
System.out.println(i);
}
private static void fun7() {
boolean boo1=Boolean.parseBoolean("true");
boolean boo2=Boolean.parseBoolean("tRue");
boolean boo3=Boolean.parseBoolean("HHHHH");
boolean boo4=Boolean.parseBoolean("false");
System.out.println(boo1);
System.out.println(boo2);
System.out.println(boo3);
System.out.println(boo4);
int i=Integer.parseInt("10");
System.out.println(i);
}
private static void fun6() {
String x=Integer.toString(10);
System.out.println(x);
}
private static void fun5() {
Integer i=new Integer(10);
int a=i;
Integer j=10;
}
private static void fun4() {
Integer in=Integer.valueOf(11);
System.out.println(in);
}
private static void fun3() {
Integer i=new Integer(10);
int x=i.intValue();
}
private static void fun2() {
Integer i1=new Integer(11);
Integer i2=new Integer("12");
System.out.println(i2);
Integer i3=new Integer("s3");
System.out.println(i3);
}
public static void fun1() {
System.out.println(Integer.MAX_VALUE);
System.out.println(Integer.MIN_VALUE);
System.out.println(Integer.SIZE);
}
}
