Created
July 1, 2010 01:50
-
-
Save johobemax/459438 to your computer and use it in GitHub Desktop.
This file contains 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 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); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
コマンドライン引数から読み込んだ数値を、演算子で計算するためのソース。本文はこれから入力。