12||0|829|3|yes 0|0|0|||1||I%27ll have my nervous breakdown|Nathan||05:04:08|12/12/2002|Well%2C as some of y%27all may remember me mentioning%2C I%27m a college student now.%0D%0A%0D%0AIt%27s Finals Time%21 Yaaay. %3C%2FmontyPython%3E%0D%0A%0D%0ASo%2C I%27m staring at the first of three %28presumably%29 basic programs that I need to finish writing within the next %2Achecks clock%2A twelve hours and change.%0D%0A%0D%0AAnd%2C to me%2C the command prompt says%3A%0D%0A%0D%0A%5Btt%5D%0D%0AC%3A%5Cj2sdk1.4.0_01%5Cbin%3Ejava payrollApp payroll.txt%0D%0AException in thread %22main%22 java.lang.ArrayIndexOutOfBoundsException%0D%0A at payrollApp.main%28payrollApp.java%3A32%29%0D%0A%0D%0AC%3A%5Cj2sdk1.4.0_01%5Cbin%3E%0D%0A%5B%2Ftt%5D%0D%0A%0D%0AHuh%3F%0D%0A%0D%0ABlessed be.%0D%0A-n%0D%0A%28No%2C it%27s not Eyrie%2C but I%27m desperate and y%27all like me to much to hunt me down and kill me... right%3F%29 1|1|0|||||RE%3A I%27ll have my nervous breakdown|Luc||07:07:07|12/12/2002|%3E%5Btt%5D %0D%0A%3EC%3A%5Cj2sdk1.4.0_01%5Cbin%3Ejava payrollApp payroll.txt %0D%0A%3EException in thread %22main%22 java.lang.ArrayIndexOutOfBoundsException %0D%0A%3E at payrollApp.main%28payrollApp.java%3A32%29 %0D%0A%3E%0D%0A%3EC%3A%5Cj2sdk1.4.0_01%5Cbin%3E %0D%0A%3E%5B%2Ftt%5D %0D%0A%3E%0D%0A%3EHuh%3F %0D%0A%0D%0AYou tried Google%2C I hope%3F%0D%0A%0D%0ABecause the first link on Google says%2C and I quote%3A%0D%0A%0D%0A%22Thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater than or equal to the size of the array.%22%0D%0A%0D%0ATry increasing the size of the array by 1. Or%2C if you%27re doing things dynamically%2C set it to maxsize %2B 1%2C rather then maxsize.%0D%0A%0D%0A%3E%28No%2C it%27s not Eyrie%2C but I%27m desperate and y%27all like me to much to %0D%0A%3Ehunt me down and kill me... right%3F%29 %0D%0A%0D%0ANo%2C while someone may hunt you down%2C I think I can safely say they won%27t kill you.%0D%0A%0D%0AThanks%0D%0ALuc %22I make no guarantees about them hitting you over the head repeatedly with a cluestick%2C however%22 French 2|2|1|||1||RE%3A I%27ll have my nervous breakdown|Nathan||07:23:30|12/12/2002|%3EYou tried Google%2C I hope%3F %0D%0A%0D%0A%2Awince%2A No. Wicked Tribe needs sleep. It%27s been... twenty hours plus%2C now.%0D%0A%0D%0ANo%2C wait%2C I did and got nothing like that....%0D%0A%0D%0AI think I used only the actual error message%2C though.%0D%0A%0D%0A%3EBecause the first link on Google says%2C and I quote%3A %0D%0A%3E%0D%0A%3E%22Thrown to indicate that an array has been accessed with an illegal %0D%0A%3Eindex. The index is either negative or greater than or equal to the %0D%0A%3Esize of the array.%22 %0D%0A%3E%0D%0A%3ETry increasing the size of the array by 1. Or%2C if you%27re doing things %0D%0A%3Edynamically%2C set it to maxsize %2B 1%2C rather then maxsize. %0D%0A%0D%0AMuch good that does me - this is my first java course%2C and I%27m frantically trying to figure out how to get a filename out of the %5Bi%5Dcommand line%5B%2Fi%5D%2C which is obviously idiot-simple even as it has me baffled. To look at what the book says%2C the string %22payroll.txt%22 %5Bi%5Dshould%5B%2Fi%5D be stored in args%5B0%5D%2C which can be treated like an ordinary variable...%0D%0A%0D%0A... and when I try that%2C I get what I showed you.%0D%0A%0D%0A%3E%3E%28No%2C it%27s not Eyrie%2C but I%27m desperate and y%27all like me to much to %0D%0A%3E%3Ehunt me down and kill me... right%3F%29 %0D%0A%3E%0D%0A%3ENo%2C while someone may hunt you down%2C I think I can safely say they %0D%0A%3Ewon%27t kill you. %0D%0A%0D%0AYay%21%0D%0A%0D%0A%3ELuc %22I make no guarantees about them hitting you over the head %0D%0A%3Erepeatedly with a cluestick%2C however%22 French %0D%0A%0D%0AAs long as the thing takes effect before my exam%2C I%27ll welcome it.%0D%0A%0D%0ABlessed be.%0D%0A-n%0D%0A%28Seriously wondering about his life goals.%29 3|3|2|||1||RE%3A I%27ll have my nervous breakdown|BobSchroeck||07:37:24|12/12/2002|%3E To look at what the book says%2C the string %22payroll.txt%22 %0D%0A%3E%5Bi%5Dshould%5B%2Fi%5D be stored in args%5B0%5D%2C which can be treated like an %0D%0A%3Eordinary variable... %0D%0A%0D%0AHm. Given that my experience with C and C-like languages is both a%29 old and b%29 minimal%2C you may want to disregard me entirely%2C but I seem to recall that args%5B0%5D should be the executable name%2C and the first parameter would be args%5B1%5D.%0D%0A%0D%0A-- Bob %28who%27s at work with nothing but Delphi books handy%29%0D%0A-------------------%0D%0ADo not taunt Happy Fun Baal. 4|4|3|||1||RE%3A I%27ll have my nervous breakdown|Nathan||07:41:43|12/12/2002|%3E%3E To look at what the book says%2C the string %22payroll.txt%22 %0D%0A%3E%3E%5Bi%5Dshould%5B%2Fi%5D be stored in args%5B0%5D%2C which can be treated like an %0D%0A%3E%3Eordinary variable... %0D%0A%3E%0D%0A%3EHm. Given that my experience with C and C-like languages is both a%29 %0D%0A%3Eold and b%29 minimal%2C you may want to disregard me entirely%2C but I seem %0D%0A%3Eto recall that args%5B0%5D should be the executable name%2C and the first %0D%0A%3Eparameter would be args%5B1%5D. %0D%0A%0D%0A%2Atries it%2A No joy. Sorry%2C Bob.%0D%0A%0D%0ABlessed be.%0D%0A-n%0D%0A%28At work by 7%3A30%3F Ugh.%29 5|5|4|||1||RE%3A I%27ll have my nervous breakdown|BobSchroeck||12:49:50|12/12/2002|%3E%3EHm. Given that my experience with C and C-like languages is both a%29 %0D%0A%3E%3Eold and b%29 minimal%2C you may want to disregard me entirely%2C but I seem %0D%0A%3E%3Eto recall that args%5B0%5D should be the executable name%2C and the first %0D%0A%3E%3Eparameter would be args%5B1%5D. %0D%0A%3E%2Atries it%2A No joy. Sorry%2C Bob. %0D%0A%0D%0AOh well. Sorry.%0D%0A%0D%0A%3E%28At work by 7%3A30%3F Ugh.%29 %0D%0A%0D%0AActually%2C I was here at 7%3A10 this morning.%0D%0A%0D%0AIt%27s not really by choice. Peggy catches a 6%3A40 train to get to her job%2C and I have to take her to the station. Now I could simply get up at 6%3A15%2C throw on jeans and a t-shirt%2C drive her over%2C then come back%2C shower and all and leave for work at 7%3A30 or so %28my job starts at 8%3A30%2C and I%27m about half an hour away%29. But given the traffic jam that usually manifests on my route between 7%3A10 and 7%3A20 %28and which persists for an hour or two afterward%29%2C it%27s less irritation and trouble to simply get up with Peg%2C prep with her%2C and just do it all at once. And it does let me sort of drift slowly into my work day frame of mind over an hour or more before anyone else gets here.%0D%0A%0D%0A-- Bob%0D%0A-------------------%0D%0ADo not taunt Happy Fun Baal. 8|6|5|||||RE%3A I%27ll have my nervous breakdown|drakensisthered||18:13:14|12/12/2002|%3E%3E%28At work by 7%3A30%3F Ugh.%29 %0D%0A%3E%0D%0A%3EActually%2C I was here at 7%3A10 this morning. %0D%0A%3E%0D%0A%3EIt%27s not really by choice. Peggy catches a 6%3A40 train to get to her %0D%0A%3Ejob%2C and I have to take her to the station. Now I could simply get up %0D%0A%3Eat 6%3A15%2C throw on jeans and a t-shirt%2C drive her over%2C then come back%2C %0D%0A%3Eshower and all and leave for work at 7%3A30 or so %28my job starts at %0D%0A%3E8%3A30%2C and I%27m about half an hour away%29. But given the traffic jam %0D%0A%3Ethat usually manifests on my route between 7%3A10 and 7%3A20 %28and which %0D%0A%3Epersists for an hour or two afterward%29%2C it%27s less irritation and %0D%0A%3Etrouble to simply get up with Peg%2C prep with her%2C and just do it all %0D%0A%3Eat once. And it does let me sort of drift slowly into my work day %0D%0A%3Eframe of mind over an hour or more before anyone else gets here. %0D%0A%0D%0AChuckle. My last job started at 7am two weeks out of three. Since I don%27t have a car and there were no buses on that route at that hour%2C I walked the two miles. This meant waking around 5am and leaving the house around 6am - except on the third week when I got to confuse my body clock by working from 3pm to 11pm.%0D%0A%0D%0AI now work elsewhere. 6|5|4|||1||RE%3A I%27ll have my nervous breakdown|Astynax||15:06:12|12/12/2002|[updated:LAST EDITED ON 12-12-02 AT 03:08 PM (EST)]%3E%3E%3E To look at what the book says%2C the string %22payroll.txt%22 %0D%0A%3E%3E%3E%5Bi%5Dshould%5B%2Fi%5D be stored in args%5B0%5D%2C which can be treated like an %0D%0A%3E%3E%3Eordinary variable... %0D%0A%3E%3E%0D%0A%3E%3EHm. Given that my experience with C and C-like languages is both a%29 %0D%0A%3E%3Eold and b%29 minimal%2C you may want to disregard me entirely%2C but I seem %0D%0A%3E%3Eto recall that args%5B0%5D should be the executable name%2C and the first %0D%0A%3E%3Eparameter would be args%5B1%5D. %0D%0A%3E%0D%0A%3E%2Atries it%2A No joy. Sorry%2C Bob. %0D%0A%3E%0D%0A%0D%0Aargs%5B0%5D should hold whatever parameter is passed to the function%2C which in this case would be the function main%28%29 I%27m guessing. Might I suggest a simple program to take a parameter and then spit it right back out%2C just to make sure it%27s being accessed properly by your code%3F Also%2C do you have any other arrays%2C it might not be args that%27s your problem %3Cbear in mind that there might be arrays in objects you are not aware of%2C and one of them could be barfing on you%3E%0D%0A%0D%0A%0D%0A%0D%0A%5Btable border%3D%220%22 cellspacing%3D%220%22 cellpadding%3D%220%22%5D%5Btr%5D%5Btd colspan%3D%222%22%5D%5Bhr size%3D%222%22 noshade%5D%5B%2Ftd%5D%5B%2Ftr%5D%5Btr%5D%5Btd%5Dhttp%3A%2F%2Fmembers.aol.com%2Ferulogos%2Fgfx%2Fxsig.jpg%5B%2Ftd%5D%5Btd%5D%5BFONT SIZE%3D%222%22 COLOR%3D%22%23000000%22%5D%5Bb%5D-%3D%7B%28Astynax%29%7D%3D-%5B%2Fb%5D%0D%0A%5Bi%5D%22The Joys of Java%2C pleasurable as a hammer to the skull%3B%29%22%5B%2Fi%5D%5B%2Ffont%5D%5B%2Ftd%5D%5B%2Ftr%5D%5Btr%5D%5Btd colspan%3D%222%22%5D%5Bhr size%3D%222%22 noshade%5D%5B%2Ftd%5D%5B%2Ftr%5D%5B%2Ftable%5D%5B%2Fp%5D%0D%0ADCF seems to be handling square brackets differently these days%2C and aren%27t %26l and %26r the right markup for them anymiore%3F 7|6|6|||1||RE%3A I%27ll have my nervous breakdown|Nathan||17:30:51|12/12/2002|%3Eargs%5B0%5D should hold whatever parameter is passed to the function%2C %0D%0A%3Ewhich in this case would be the function main%28%29 I%27m guessing. Might I %0D%0A%3Esuggest a simple program to take a parameter and then spit it right %0D%0A%3Eback out%2C just to make sure it%27s being accessed properly by your code%3F %0D%0A%3EAlso%2C do you have any other arrays%2C it might not be args that%27s your %0D%0A%3Eproblem %3Cbear in mind that there might be arrays in objects you are %0D%0A%3Enot aware of%2C and one of them could be barfing on you%3E %0D%0A%0D%0AOkay%2C just fiddled a bit and figured it out%3A I was trying to pull args%5B0%5D from inside the try block. Why that would %5Bi%5Dmatter%5B%2Fi%5D I don%27t know%2C but changing that has fixed it.%0D%0A%0D%0A...%0D%0A%0D%0AAnd%2C now%2C fifteen minutes later%2C having fixed my loop%2C all I need to do is remember how to set the precision of a Double.%0D%0A%0D%0AThen I can move on to one of the other two.%0D%0A%0D%0ABlech. I hate applets.%0D%0A%0D%0AOkay%2C so%2C the thing is choking on having a paint%28Graphics g%29 inside an init. I -think- that this is just a matter of how I%27m calling the paint ... Which leaves the question of what the right way is.%0D%0A%0D%0A%3EDCF seems to be handling square brackets differently these days%2C and %0D%0A%3Earen%27t %26l and %26r the right markup for them anymiore%3F %0D%0A%0D%0AI%27d know%3F%0D%0A%0D%0ABlessed be.%0D%0A-n%0D%0A%28Thanks all.%29 9|6|6|||1||RE%3A I%27ll have my nervous breakdown|Laudre||00:48:03|12/13/2002|%3EDCF seems to be handling square brackets differently these days%2C and %0D%0A%3Earen%27t %26l and %26r the right markup for them anymiore%3F %0D%0A%0D%0A1%29 See my rant about %22any more%22 over on the general board.%0D%0A%0D%0A2%29 Try following %26l and %26r with a %3B.%0D%0A%0D%0A-- Sean -- %0D%0A%5Bb%5DRabid Crack Weasel %2342%5B%2Fb%5D %0D%0A%22All tribal myths are true%2C for a given value of %27true%27.%22 -- Terry Pratchett %0D%0A%5Blink%3Awww.drelau.com%2F%7CDrelau Productions%5D %0D%0A%5Blink%3Awww.thebrokenlink.org%2F%7CThe Broken Link%5D %0D%0A 10|7|9|||1||RE%3A I%27ll have my nervous breakdown|Astynax||10:58:38|12/13/2002|%3E%3EDCF seems to be handling square brackets differently these days%2C and %0D%0A%3E%3Earen%27t %26l and %26r the right markup for them anymiore%3F %0D%0A%3E%0D%0A%3E1%29 See my rant about %22any more%22 over on the general board. %0D%0A%3E%0D%0A%0D%0ATypos aside%2C Gryph is right in this case%2C you%27re being a choad%3B%29 %3Cespecially since I can%27t seem to dredge up a variation on that phrase not containing those words that doesn%27t semm either incomplete or snooty%3E%0D%0A%0D%0A%3E2%29 Try following %26l and %26r with a %3B. %0D%0A%3E%0D%0A%0D%0ALet%27s find out%2C thanks if it works. %26l%3B %26r%3B%0D%0A%0D%0A%0D%0A%0D%0A%5Btable border%3D%220%22 cellspacing%3D%220%22 cellpadding%3D%220%22%5D%5Btr%5D%5Btd colspan%3D%222%22%5D%5Bhr size%3D%222%22 noshade%5D%5B%2Ftd%5D%5B%2Ftr%5D%5Btr%5D%5Btd%5Dhttp%3A%2F%2Fmembers.aol.com%2Ferulogos%2Fgfx%2Fxsig.jpg%5B%2Ftd%5D%5Btd%5D%5BFONT SIZE%3D%222%22 COLOR%3D%22%23000000%22%5D%5Bb%5D-%3D%7B%28Astynax%29%7D%3D-%5B%2Fb%5D%0D%0A%5Bi%5D%22Darkness beyond Twilight%22%5B%2Fi%5D%5B%2Ffont%5D%5B%2Ftd%5D%5B%2Ftr%5D%5Btr%5D%5Btd colspan%3D%222%22%5D%5Bhr size%3D%222%22 noshade%5D%5B%2Ftd%5D%5B%2Ftr%5D%5B%2Ftable%5D%5B%2Fp%5D 11|8|10|||||RE%3A I%27ll have my nervous breakdown|goldenfire||11:24:05|12/13/2002|%3E%3E%3EDCF seems to be handling square brackets differently these days%2C and %0D%0A%3E%3E%3Earen%27t %26l and %26r the right markup for them anymiore%3F %0D%0A%3E%3E%0D%0A%3E%3E1%29 See my rant about %22any more%22 over on the general board. %0D%0A%3E%3E%0D%0A%3E%0D%0A%3ETypos aside%2C Gryph is right in this case%2C you%27re being a choad%3B%29 %0D%0A%3E%3Cespecially since I can%27t seem to dredge up a variation on that phrase %0D%0A%3Enot containing those words that doesn%27t semm either incomplete or %0D%0A%3Esnooty%3E %0D%0A%0D%0A%22aren%27t %26l and %26r the right markup for them any longer%3F %22%0D%0A%0D%0Aat least%2C I think that%27s more correct%2C in terms of grammer. I could be wrong though%2C since english grammer is not something that %5Bi%5Dmakes sense%5B%2Fi%5D half the time.%0D%0A%0D%0A%28P.S. or does that count as snooty%3F If so%2C sorry%29 12|9|11|||1||RE%3A I%27ll have my nervous breakdown|Laudre||14:37:09|12/13/2002|[updated:LAST EDITED ON 12-13-02 AT 02:37 PM (EST)]%3E%3E%3E%3EDCF seems to be handling square brackets differently these days%2C and %0D%0A%3E%3E%3E%3Earen%27t %26l and %26r the right markup for them anymiore%3F %0D%0A%3E%3E%3E%0D%0A%3E%3E%3E1%29 See my rant about %22any more%22 over on the general board. %0D%0A%3E%3E%3E%0D%0A%3E%3E%0D%0A%3E%3ETypos aside%2C Gryph is right in this case%2C you%27re being a choad%3B%29 %0D%0A%3E%3E%3Cespecially since I can%27t seem to dredge up a variation on that phrase %0D%0A%3E%3Enot containing those words that doesn%27t semm either incomplete or %0D%0A%3E%3Esnooty%3E %0D%0A%3E%0D%0A%3E%22aren%27t %26l and %26r the right markup for them any longer%3F %22 %0D%0A%3E%0D%0A%3Eat least%2C I think that%27s more correct%2C in terms of grammer. I could %0D%0A%3Ebe wrong though%2C since english grammer is not something that %5Bi%5Dmakes %0D%0A%3Esense%5B%2Fi%5D half the time. %0D%0A%3E%0D%0A%3E%28P.S. or does that count as snooty%3F If so%2C sorry%29 %0D%0A%0D%0ATry %22Isn%27t %26l and %26r still the right markup for %26l%3Bsquare brackets%26r%3B%3F%22%0D%0A%0D%0A-- Sean -- %0D%0A%5Bb%5DRabid Crack Weasel %2342%5B%2Fb%5D %0D%0A%22All tribal myths are true%2C for a given value of %27true%27.%22 -- Terry Pratchett %0D%0A%5Blink%3Awww.drelau.com%2F%7CDrelau Productions%5D %0D%0A%5Blink%3Awww.thebrokenlink.org%2F%7CThe Broken Link%5D %0D%0A