Skip to content

Instantly share code, notes, and snippets.

@takuma7
Created December 16, 2011 02:27
Show Gist options
  • Save takuma7/1484147 to your computer and use it in GitHub Desktop.
Save takuma7/1484147 to your computer and use it in GitHub Desktop.
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