Created
December 16, 2011 02:27
-
-
Save takuma7/1484147 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Mondai17_1{ | |
public static void main(String[] args){ | |
Mondai17_1 m = new Mondai17_1(); | |
try{ | |
int su1 = Integer.parseInt(args[0]); | |
int su2 = Integer.parseInt(args[1]); | |
System.out.println("num#1 : " + su1); | |
System.out.println("num#2 : " + su2); | |
System.out.println("result : " + m.jouzan(su1,su2)); | |
}catch(Exception e){ | |
System.out.println("invalid input given"); | |
} | |
} | |
int jouzan(int su1, int su2){ | |
return su1*su2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment