摘要:
public class test{ public void info(int...nums) { for(int num : nums) { System.out.println(num); } } public static void main(String args[]) { test t = 阅读全文
posted @ 2022-07-31 21:36
epiphanyy
阅读(11)
评论(0)
推荐(0)
摘要:
int a = 2; char b = 'f'; 类似以上的2、'f’等为直接量,直接量可以是8种基本数据类型,也可以是null,但null只能复制给引用变量。 阅读全文
posted @ 2022-07-31 15:28
epiphanyy
阅读(10)
评论(0)
推荐(0)