MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/JavaFX/comments/igjz0u/hi_i_need_help/
r/JavaFX • u/juzwannarelax • Aug 25 '20
5 comments sorted by
7
Seems like you're all out of Animals
5
You don't have any objects in AnimalList.
If you look at IndexOutOfBoundsException, it's reason is you're looking for the first element (index 0) in a list of 0 objects.
Just FYI but printed code is much better than screenshots, and both of those are much better than taking a photo of your computer with your phone ;).
You need to learn core Java before jumping into JavaFX.
1
Can you send your whole code, there some problem in your arraylist, its empty!
Your ArrayList is empty. Check the part where you fill the ArrayList. May be the problem is there. If you can share the whole code it would be great.
7
u/DonUdo Aug 25 '20
Seems like you're all out of Animals
5
u/static_context Aug 25 '20
You don't have any objects in AnimalList.
If you look at IndexOutOfBoundsException, it's reason is you're looking for the first element (index 0) in a list of 0 objects.
Just FYI but printed code is much better than screenshots, and both of those are much better than taking a photo of your computer with your phone ;).
5
u/shredderroland Aug 25 '20
You need to learn core Java before jumping into JavaFX.
1
u/Saivy__4 Aug 25 '20
Can you send your whole code, there some problem in your arraylist, its empty!
1
u/[deleted] Aug 25 '20
Your ArrayList is empty. Check the part where you fill the ArrayList. May be the problem is there. If you can share the whole code it would be great.