摘要:
public class Hello{ public static void main(String[] args) { System.out.println("Hello World!"); for (int i = 0; i < 10; i++) { for (int k = 0; k < i; 阅读全文
摘要:
What is the sum of the digits of the number 21000 public static int sumDigits(int n) { int int_retVal = 0; int int_pow = (int) Math.pow(2, n); String 阅读全文
摘要:
已知 a^2+b^2=c^2(a,b,c 为自然数,a<b<c),且a+b+c=1000,求abc的值? public static int getABC() { int resVal = 1; for (int a = 0; a <= 1000; a++) { for (int b = 1; b 阅读全文
摘要:
从数字字符串中找到最大值和最小值 /** * find the max and min from String */ public static String highAndLow(String numbers) { String retStr = ""; String[] strAry = num 阅读全文