摘要:
浮点数表示 Java 中的浮点数(float 和 double)是近似值,并不能精确表示所有小数。例如: public class PrecisionLoss { public static void main(String[] args) { double a = 0.1; double b = 阅读全文
摘要:
今天进行了测试 以下是我写的 package test; public class student { public String stunumber; public String name; public int age; public boolean sex; public double sco 阅读全文
摘要:
常见的 List 方法和遍历 List 的方式。 常见的 List 方法 add(E e):将元素 e 添加到列表的末尾。 remove(int index):移除指定位置 index 的元素。 get(int index):返回指定位置 index 的元素。 set(int index, E el 阅读全文