Weird Java Exception name -
i did system.out.print object null , got this:
550270261027054028026002805302902590290520300258030051031025703105003202560320 490330255033048034025403404703502530350460360252036045037025103704403802500380 43039024903904204002480exception
i tried googling name of exception long.
does know exception means?
for (int = bulletlist.size(); > 0; i--) { final bullet b = bulletlist.get(i - 1);/* bullet class containing it's image, position , rectangle , handling movement*/ b.r = new rectangle(b.x, b.y, 34, 20); (i = obsticallist.size(); > 0; i--) { final obstical o = obsticallist.get(i - 1);//obsical class bullet class stationary thing system.out.print(o.r.x); system.out.print(b.r.x);//this exception } } 3202452730245310255272025530026527102652902752700exception in thread "thread-3" @ startingclass.checkcollision(startingclass.java:175) @ startingclass.run(startingclass.java:107) @ java.lang.thread.run(unknown source)
the digits aren't part of exception name. code printing digits no line feeds standard out.
the default exception handler prints stack trace standard error. messages standard output , standard error being interleaved on console, digits see code, , "exception" fragment of stack trace.
most likely, if further in console, you'll see beginning of exception name. runtime exception line indicate throw nullpointerexception
, if b
or b.r
null; but, given code, doesn't possible. maybe exception thrown line. line numbers , stack trace pin down, perhaps it's nullpointerexception
previous line.
Comments
Post a Comment