摘要:
1.判断从键盘输入的字符串是否为回文(回文是指自左向右读与自右向左读完全一样的字符串)注:该代码是在网上借鉴 public class BackChar { public boolean IsPalindrome1(String A) { char[] ch = A.toCharArray(); i 阅读全文
摘要:
1. n! = 1*2*3*4....*n,计算2!,4!,6!,8!和10!,显示计算结果 public class Base03 { public int fun(int n){ int m = 1; for (int i=1;i<=n;i++){ m = m * i; } return m; 阅读全文
摘要:
1./*运算*/public class Base01 { public static void main(String args[]) { int a, b, c, d, e; a = 5; b = 3; c = 9; d = 1; e = 4; System.out.println(a + b 阅读全文