Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Video servlet assignment

 
K. Tsang
Bartender
Posts: 3524
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got a query even though the assignment doesn't require it. In the video servlet, we are to add and list the videos using array list then require cookies to login in order to do the actions.

Now once all that is done, just curious, can the array list data be changed?
Assume I can get that particular index of the array list, I can then change it by using the add(index,data) method of ArrayList. Will this work?

Thanks.
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it is possible to add code to change the values in the ArrayList rather than only adding values.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic