#vertical arraylists

12 messages · Page 1 of 1 (latest)

azure robin
#

I get the results from the ArrayList printed out horizontally: i.e.

[120.3, 215.9, 165.0, 185.0, 185.4, 160.5, 120.4, 370.1, ....... 125.3]
I need the results to be printed vertically: i.e.

120.3
215.9
165.0
185.0
.
.
.
125.3
Is this even possible with ArrayLists?

copper dockBOT
#

Hey, @azure robin!
Please remember to /close this post once your question has been answered!

finite raven
#

it is possible

#

just iterate over each item in the list and print them using println

#

this sounds like homework, so you have to figure out the rest; I'm not doing it for you.

azure robin
#

brother im not in school im just learning at home. thanks for the help pal xoxooxo

drifting wigeon
#

like

for(int i = 0;i<list.size();i++){
System.out.println(list.get(i));
}
drifting wigeon
#

then the problem solving part is up to u how u utilize the information u already have to achive the best result

#

the more u practise the more u remeber and the more u remeber the more different problems u can solve using it