Re: [J2SE] 請問這段錯誤訊息的意思 Except in tre …

看板java作者 (我要看Naruto >_<)時間19年前 (2006/03/16 14:45), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/13 (看更多)
※ 引述《zanyking (遙遠的旅人)》之銘言: : ※ 引述《qrtt1 (thinking in java)》之銘言: : : == local q == : : 猜一猜、猜一猜、猜.......一...猜~~~~~~~~~~~~ : : 判斷args有沒有東西 : : 不可以用if(args==null) : : 要用if(args.length==0) : 這種的猜出來才有鬼... : 給一下source吧,不然只知道你對null作了些不合理的命令。 記得Local save 第一: 老實說看到後面有 at... 原po還不如把at... 貼上來 第二: 查了一下API對於Exception的解釋 Thrown when an application attempts to use null in a case where an object is required. These include: * Calling the instance method of a null object. * Accessing or modifying the field of a null object. * Taking the length of null as if it were an array. * Accessing or modifying the slots of null as if it were an array. * Throwing null as if it were a Throwable value. 五種情形我這笨蛋都幹過,還真猜不出你是指哪種錯誤 +_+ -- -- 嘿嘿..我是huge.. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.114.88.71
文章代碼(AID): #146GbqKc (java)
討論串 (同標題文章)
文章代碼(AID): #146GbqKc (java)