摘要:
1.Math Math包含执行基本数字运算的方法 演示: public static int abs(int a) System.out.println(Math.abs(22)); System.out.println(Math.abs(-22)); // 输出结果 22 22 public st 阅读全文
posted @ 2022-01-07 21:10
早晨9点
阅读(338)
评论(0)
推荐(0)
摘要:
格式: public class 外部类名{ 修饰符 class 内部类名{ ...... } } 访问特点: 内部类可以直接访问外部类的成员,包括私有 外部类要访问内部类的成员,必须创建对象 按照内部类在外部类中定义的位置不同,可以分为如下两种形式: 在类的成员位置定义:成员内部类 在类的局部位置 阅读全文
posted @ 2022-01-07 21:05
早晨9点
阅读(38)
评论(0)
推荐(0)

浙公网安备 33010602011771号