main中的字符串数组
public class Main { public static void main(String[] args) { int indexMin = 0;/** 来 自 N o w J a v a . c o m**/ for (int i = 1; i < args.length; i++) if (Integer.parseInt(args[indexMin]) > Integer.parseInt(args[i])) indexMin = i; System.out.println("Maximum argument found at index:" + indexMin + " :" + args[indexMin]); } }