Board logo

標題: 1210 輸入字串相加 [打印本頁]

作者: b790113g    時間: 2011-12-10 11:33     標題: 1210 輸入字串相加

本帖最後由 b790113g 於 2011-12-10 11:34 編輯 " n! k) ?2 I1 ]* p
  1. public class d1210 {

  2.         public static void main(String[] arg){
  3.        
  4.                 System.out.println(arg[0]+arg[1]);
  5.                
  6.         }

  7. }
複製代碼

作者: TOM    時間: 2011-12-10 11:45

  1. public class tom1210
  2. {
  3.     public static void main(String[]arg)
  4.         {
  5.                
  6.                         System.out.println(arg[0]+arg[1]);
  7.                
  8.    
  9.     }


  10. }
複製代碼

作者: johnson    時間: 2011-12-10 11:51

  1. public class j1210 {

  2.         public static void main(String[] arg){
  3.             String a=arg[0];
  4.                         String b=arg[1];
  5.             System.out.println(a+b);
  6.                
  7.         }

  8. }
複製代碼

作者: lon    時間: 2011-12-10 11:52

  1. public class j2{
  2. public static void main(String[] args){
  3.         System.out.print(args[0]+args[1]);
  4. }
  5. }
複製代碼

作者: eric5802    時間: 2011-12-10 11:58

public class tom1210, a  D. u/ ]  j* Q8 F

$ R* f% x9 K3 v4 }$ W7 f2 j{
- A7 i/ ~( ~. n: N3 _+ `: T6 w5 {. I, S1 e
    public static void main(String[]arg)
2 {* F+ D& M; p5 W1 G3 A$ ^
9 L& R0 d8 K7 s9 E+ r' v        {! U$ C! K6 l. ]- o' C
! v4 _: x! A. B  }5 s7 `, T( @
               
& [) ^' ~" F% o3 `+ q: E) s* q
1 ~2 w& m$ I; G7 D                        System.out.println(arg[0]+arg[1]);6 k! f+ u4 z, ]& |2 S& r: X* ?1 B7 ]

- O( L! e& a& ?8 z7 R               
' k. U3 ^$ y  H' F- M: @# L$ ]0 t/ M  f9 f. \+ m# w
    + E3 L8 k5 y9 Y7 y! x0 j( A3 T4 v

3 i7 B' W3 E8 G0 n, n    }: {! M4 e( ^! }. b7 u; c9 S3 B

. G# H. Y# D- c- z
! i' p& n3 ~& K( H% W9 X/ k+ k. k) |/ R- _* @; k( g1 Y

3 l# S) K+ U: Z4 X; ]# u
. p9 E2 k* M4 G2 `3 Z8 T}




歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://seed.istak.org.tw/) Powered by Discuz! 7.2