1、错误描述
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at com.you.model.Args.main(Args.java:18)
2、错误原因
/** * */ package com.you.model; /** * @author YHD * */ public class Args { /** * @param args */ public static void main(String[] args) { System.out.println(args[0]); System.out.println(args[1]); } }
java.lang.ArrayIndexOutOfBoundsException
原文地址:http://blog.csdn.net/you23hai45/article/details/39089219