摘要: class zcs { public static void main(String[] args) { double c=add(2.3,2.7); System.out.println("Hello World!"+c); printCFB(5); //调用无返回值的函数。 System.out.println(); printCFB();... 阅读全文
posted @ 2018-04-12 09:20 we_are_young 阅读(201) 评论(0) 推荐(0) 编辑
摘要: class ArrayDemo { public static void main(String[] args) { int[] arr=new int[10]; //new 一个是在堆里面运算 //new关键字分配内存时,各元素的初始值为0 arr[0]=2; arr[1]=6; System.out.println(arr[0]+" "+arr[5]);... 阅读全文
posted @ 2018-04-12 09:19 we_are_young 阅读(153) 评论(0) 推荐(0) 编辑