Norm Radder

+ Follow
since Aug 10, 2005
Worked mostly with IBM mainframe assembly code. Loved IBM's VM OS.
Eastern Florida
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Norm Radder

Sorry, I don't know about versions.  My Eclipse is several years old. It's in adt-bundle-windows-x86_64-20140702
I understand the newer versions don't support android development.
My AS is 3.2
4 months ago
Look at the contents of the array that was printed,  The last entry was null which means it was not assigned a value.  Look at the logic and see why there is an empty slot at the end of the array.
When the code loads the array, it needs to get one more value for the end of the array or the size of the array must be one less.
4 months ago
Make sure the assignment statement that gives a value to the array is executed.
 theArray = new DataType[size]

Make sure the statements that assign values to the slots in the array are executed.
theArray[index] = aValue

Where did you put the statement that prints the contents of the array?  It should be immediately before the statement (line 176) where the NPE happens
4 months ago
If the array variable is null, then check that the code that gives it a value is executed.
4 months ago
Too bad for me.  I was using the old view until a few hour ago and mistakenly pressed a wrong button.  Now I'm out in the cold.
It was fun while it lasted.

So long,
4 months ago
Print out the contents of the tagsList array to be sure it does not contain any null values.  Use the Arrays class's toString method:
4 months ago

 the output i provided is the exact output.

What java program are you using?  My java program does not have the same text as yours for a NPE.

Look at the variables on line 176 and find the one with the null value.  Then backtrack in the code to find out why that variable did not have a valid value.
4 months ago
I made the mistake of clicking on a button to change my view to the new view(which I hate).  I could not find a switch to restore the old view.  In trying various buttons, I pressed the "Mobile view" button.
Now I'm really stuck.  
How do I get out of Mobile view?   >>>> Found Desktop view and have gotten out of Mobile view
How do I restore the old view of the site?

4 months ago
Is that the exact output?  The message I get for a NPE looks like this:

Exception in thread "main" java.lang.NullPointerException
at TestCode25.main(

Notice the first line.
4 months ago
Please copy and post the full text of the error message, not just a few lines.
4 months ago

have a main method in my BooksTestDrive class

What class was given to the java command?  If the BooksTextDrive class has the main method that is used to start the program, pass it to the java command:
java BooksTestDrive
4 months ago

im still getting errors  

From which IDE? AS or Eclipse.  
I don't work with AS at all because of the headaches I get trying to get past its housekeeping.  I don't currently have any android projects, so until I find something I want to have, I'll probably not be doing any development.
4 months ago