摘要: 1 public static void main(String[] args) { 2 double n = 1, sum = 0; 3 while (n <= 20) { 4 sum += 1 / Factorial(n); 5 ... 阅读全文
posted @ 2015-05-09 10:05 阿伦-艾弗森 阅读(1307) 评论(0) 推荐(0) 编辑
摘要: 1 public class Test02 { 2 public static void main(String[] args) { 3 for (int i = 1; i <= 9; i++) { 4 for (int j = 1; j <= i;... 阅读全文
posted @ 2015-05-09 09:35 阿伦-艾弗森 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args) { 2 int triangle[][] = new int[10][];// 创建二维数组 3 // 遍历二维数组的第一层 4 for (int i = 0; i <... 阅读全文
posted @ 2015-05-09 08:51 阿伦-艾弗森 阅读(128) 评论(0) 推荐(0) 编辑