package text;
public class Demo1128 {
public static void main(String[] args) {
***
byte bt1 = 0;
short st1 = 0;
int it1 = 0;
long lg1 = 0L;
float ft1 = 1.1F;
double db1 = 2.2D;
char ch1 = 'a';
char ch3 = '\\';
char ch2 = 61;
boolean bo1 = true;
System.out.println(ch1);
System.out.println(ch2);
System.out.println(ch3);
System.out.println("============================");
int a = 199;
float b=1000.3F;
long c=a;
char f = 'B';
double g = f;
System.out.println(g);
System.out.println(c);
System.out.println(b);
int d= (int)b;
System.out.println(d);
byte e = (byte) a;
System.out.println(e);
System.out.println("============================");
int t1 ='A'+1;
char t2 = 'A'+1;
int t3 = (int)22.1+11;
System.out.println(t1);
System.out.println(t2);
System.out.println(t3);
System.out.println("==============================");
int p1,p2,p3;
p1 = 100;
p2 = 0144;
p3 = 0x64;
System.out.println("十进制直接输出:"+p1+" 十六进制转换成十进制之后在输出: "+p3+"八进制转换成十进制:"+p2);
function1();
}
}
static void function1() { //对应的引用类型
//byte - Byte
//short - Short
//int - Integer
//long - Long
//float - Float
//double - Double
//boolean - Boolean
//char - Character
```cpp
```cpp
```kotlin
```kotlin
```kotlin
```kotlin
```java
int i1 = 10;
Integer i2 = 10;
System.out.println(i1+"后者是整型的引用类型"+i2);
System.out.println("基本类型:byte,引用类型:Byte,二进制位数:" + Byte.SIZE);
System.out.println("包装类:java.lang.Byte");
System.out.println("最小值:Byte.MIN_VALUE " + Byte.MIN_VALUE);
System.out.println("最大值:Byte.MAX_VALUE " + Byte.MAX_VALUE);
System.out.println("基本类型:int,引用类型:Integer,二进制位数:" + Integer.SIZE);
System.out.println("包装类:java.lang.Integer");
System.out.println("最小值:Integer.MIN_VALUE " + Integer.MIN_VALUE);
System.out.println("最大值:Integer.MAX_VALUE " + Integer.MAX_VALUE);
int i3 = i2.intValue();
System.out.println(i3);
}
}