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); } }
java基本数据类型转换
猜你喜欢
转载自blog.csdn.net/qq_22182989/article/details/70890631
今日推荐
周排行