sharon avitan

Greenhorn
+ Follow
since Sep 14, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sharon avitan

if the element is not null ... print
worked for me
thanks...
12 years ago
I am want to print this arraylist with out the null.
i


this is what I get:
The array is:
arr[0] = Papa Bill
arr[1] = Ali Baba
arr[2] = Ming the Merciless
arr[3] = Grandpa
arr[4] = Tornado
arr[5] = null

I also tried doing this with a toString().



in this I get NullPointerException..

[Edit: added code tags - MB]
12 years ago