摘要:
public class Demo01 { public static void main(String[] args) { Integer integer1 = new Integer(100); Integer integer2 = new Integer(100); System.out.pr 阅读全文
posted @ 2023-02-14 13:04
惊鸿宴远赴人间
阅读(30)
评论(0)
推荐(0)
摘要:
public class Demo01 { public static void main(String[] args) { //基本类型和字符串之间的转换 // 1.基本类型转换为字符串 int num1=15; //1.使用+ ,后面拼接字符串 String s1=num1+" "; Syste 阅读全文
posted @ 2023-02-14 12:37
惊鸿宴远赴人间
阅读(22)
评论(0)
推荐(0)
摘要:
public class Demo01 { public static void main(String[] args) { //装箱:基本类型转换为引用类型 int num1=10; Integer integer1 = new Integer(num1);//第一种方法 Integer inte 阅读全文
posted @ 2023-02-14 12:15
惊鸿宴远赴人间
阅读(22)
评论(0)
推荐(0)
摘要:
public class Student { private String name; private int age; public Student() { } public Student(String name, int age) { this.name = name; this.age = 阅读全文
posted @ 2023-02-14 10:17
惊鸿宴远赴人间
阅读(17)
评论(0)
推荐(0)
浙公网安备 33010602011771号