Skip to content

Instantly share code, notes, and snippets.

@johobemax
Created July 1, 2010 01:50
Show Gist options
  • Save johobemax/459438 to your computer and use it in GitHub Desktop.
Save johobemax/459438 to your computer and use it in GitHub Desktop.
public class Enzan
{
public static void main(String[] args)
{
int a = Integer.parseInt(args[0]); //数文字→数値へ返還する
int b = Integer.parseInt(args[1]); //Integer.parseInt("数文字")
System.out.println("a="+a);
System.out.println("b="+b);
}
}
@johobemax
Copy link
Author

コマンドライン引数から読み込んだ数値を、演算子で計算するためのソース。本文はこれから入力。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment