![]() |
| ||
| Exception error for heap I'm not sure if I'm doing this correctly but up to now I get an exception error. Can you see why? :
|
| ||
| Re: Exception error for heap Please mention in detail what Exception you are getting. BTW are you getting an ArrayOutOfBoundsException ? |
| ||
| Re: Exception error for heap Exception error, Now thats the most generic term I can think of when describing a problem, Can you be more specific as to what Exception you are getting and at what line number the exception is being thrown as indicated by your JVM ??? |
| ||
| Re: Exception error for heap Sorry...Null Pointer Exception - Exception in thread "main" |
| ||
| Re: Exception error for heap Again you have posted the exception without much detail for e.g. line no. Also since oyu haven't put in your entire code and since also your code is not indented properly it is difficult figuring out where the exception would be and hence why it would be occurring at all. Still I present a hint here : Nullpointer exception occur at places where you use a null reference. This would be where you are using the dot operator (.) and the reference on the LHS of it is a null reference. IF you can figure out yourself where this would be happening in your program - great, but if not you can help us by posting the code part in question e.g. the main method and the entire stack trace with line numbers for the code part. |
| ||
| Re: Exception error for heap public void formHeapTree() {Certainly int unsortedSet[]hides Your previous declaration -> delete int quuba |
| All times are GMT -4. The time now is 4:02 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC