递归 最简单的递归-1-100的加法 public static int add(int n) { if (n == 1) { return 1; } return n + add(n - 1); } 递归判断一个字符串是否为回文串——简单方法 publ