I'd like to use getter and setter methods I wrote in my Nation class with ArrayList, but it doesn't work. ArrayList doesn't behave like an array.
list[i].getCapitol(); doesn't work
I somewhat found a way around it, but I need to use arrays and stuffs like that, but I think the teacher wants me to only use ArrayLists.
I am a newbie.