Follow us on Twitter!
Your life is ending one minute at a time. If you were to die tomorrow, what would you do today?
Sunday, April 20, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 27
Guests Online: 26
Members Online: 1

Registered Members: 82843
Newest Member: hx47
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

java casting problem

shadow31
Member



Posts: 32
Location:
Joined: 25.11.07
Rank:
Newbie
Posted on 16-03-10 04:18
so I have a class called "test", In another class i have created an arraylist<objects> list but it wont let me cast the test object into the arraylist. It is giving me a null.pointer.exception

so I use list.add(new test());

What am I missing or what am i doing wrong


img337.imageshack.us/img337/7336/shadowflameredshadowjr3.jpg
Author

RE: java casting problem

fuser
Member



Posts: 960
Location: in front of a computer (duh)
Joined: 05.04.07
Rank:
Mad User
Posted on 16-03-10 09:59
well, as much as I'd like to hone my psychic powers in figuring out your problem with a basic description, it appears my powers are sadly limited, so you'll have to post the code so that I can see the problem.


img.userbarz.com/51/10006.png
img.userbarz.com/146/29144.gif
img.userbarz.com/99/19602.jpg
img.userbarz.com/4/600.png
img.userbarz.com/45/8814.gif
img360.imageshack.us/img360/9231/bfbarlr0.jpg
[url=http://userbarz.com/][img]ht
catinthecpu@hotmail.com
Author

RE: java casting problem

shadow31
Member



Posts: 32
Location:
Joined: 25.11.07
Rank:
Newbie
Posted on 16-03-10 17:54
i would but we got the problem solved. The arraylist wasn't initialized correctly


img337.imageshack.us/img337/7336/shadowflameredshadowjr3.jpg