#Total price program

1 messages · Page 1 of 1 (latest)

lone ore
#

I'm trying to code a program where the user is meant to input the name of an item and then it's price, I'd like to store the items in an arraylist and print it in a table afterwards. However, my code keeps telling me the .Length is undefined or can not be resolved. Is anyone able to help?

plush ravineBOT
#

This post has been reserved for your question.

Hey @lone ore! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

whole prism
#

For storing in an arraylist, you’d have to use size()

lone ore
#

Thank you

plush ravineBOT
# lone ore Thank you

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.