摘要:
今天,在写一个求圆面积的代码时,发现一下两种表达方式的结果不一样。求解public class Test { public static void main(String[] args) { final double PI = 3.14; System.out.println("PI*3*3... 阅读全文
摘要:
在看书时,注意到作者使用的for循环中出现for(int i : arr),之前没有接触过,不知其作用,于是写了个test测试了其作用。结果发现这是一个遍历循环。1 public class test {2 public static void main(String[] args) {... 阅读全文