]]>re: Spring Autowire鑷姩瑁呴厤 http://www.tkk7.com/cmzy/archive/2012/12/16/216176.html#393067JoinJoinSun, 16 Dec 2012 12:10:00 GMThttp://www.tkk7.com/cmzy/archive/2012/12/16/216176.html#393067
]]>re: java澶ф暟鍔犳硶[鏈櫥褰昡http://www.tkk7.com/cmzy/archive/2012/05/31/258775.html#379694helloworldhelloworldThu, 31 May 2012 14:19:00 GMThttp://www.tkk7.com/cmzy/archive/2012/05/31/258775.html#379694 import java.util.Scanner;
public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); String s1, s2; String SUM = ""; int t; int a, b; int num; num = sc.nextInt(); boolean j = false; int n = 0; do { s1 = sc.next(); s2 = sc.next(); System.out.println("Case " + ++n + ":"); System.out.print(s1 + " + " + s2 + " = "); SUM = ""; a = s1.length(); b = s2.length();
if (a <= b) {
String splus = ""; for (int p = 0; p < b - a; p++) splus += "0"; s1 = splus + s1;
a = b; t = a; } else { String splus = ""; for (int p = 0; p < a - b; p++) splus += "0"; s2 = splus + s2; b = a; t = a; } j = false; for (int i = 0; i <= t; i++) {
if ((s1.length() > 0)) { String c; c = "" + s1.substring(a - 1, a); String d = s2.substring(a - 1, a); s1 = s1.substring(0, a - 1); s2 = s2.substring(0, a - 1); a--; int cToInt = Integer.parseInt(c); int dToInt = Integer.parseInt(d);
int sum = cToInt + dToInt;
if (j == true) { sum = sum + 1; } if (sum >= 10) { j = true; sum = sum - 10; } else if (sum < 10) j = false; SUM = sum + SUM; } } if (j) SUM = 1 + SUM; System.out.println(SUM); System.out.println(); } while (--num != 0); }
]]>re: Could not load java.net.BindException寮傚父鐨勮В鍐沖姙娉?/title>http://www.tkk7.com/cmzy/archive/2012/04/06/261884.html#373451闃挎柉欏?/dc:creator>闃挎柉欏?/author>Fri, 06 Apr 2012 03:57:00 GMThttp://www.tkk7.com/cmzy/archive/2012/04/06/261884.html#373451
]]>re: Spring Autowire鑷姩瑁呴厤 http://www.tkk7.com/cmzy/archive/2012/02/20/216176.html#370344璋澃甯?/dc:creator>璋澃甯?/author>Mon, 20 Feb 2012 06:22:00 GMThttp://www.tkk7.com/cmzy/archive/2012/02/20/216176.html#370344
]]>re: Spring Autowire鑷姩瑁呴厤 [鏈櫥褰昡http://www.tkk7.com/cmzy/archive/2011/12/29/216176.html#367469jiangjiangThu, 29 Dec 2011 02:49:00 GMThttp://www.tkk7.com/cmzy/archive/2011/12/29/216176.html#367469