Newer
Older
20a5080NWP / src / j1 / PrintArgs.java
@Motoki Miura Motoki Miura on 22 Sep 2020 461 bytes first commit for NWP exp
package j1;

// PrintArgs.java

// Stringは文字列を表す.
// String[]は文字列を要素とする配列を表す.
// <配列変数名>.length は,配列の要素の数を表す.
// なお,< と >で囲まれた日本語はJavaの構文の要素を示す.

public class PrintArgs{
    public static void main(String[] args){
	for(int i = 0; i< args.length; i += 1)
	    System.out.println("args["+ i+ "] = "+ args[i]);
    }
}