package com.mytest03;
//基本数据类型转换
public class Number {
public static void main(String[] args) {
byte mybyte = 124;
short myshort = 32564;
int myint = 45784612;
long mylong = 46789451L;
char mychar = 'A';//
long result = mybyte+myshort+myint+mylong+mychar;
System.out.println("强制转换:"+(int)mychar);
}
}
网友评论