aspose file tools*
The moose likes Cattle Drive and the fly likes Video servlet  assignment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Video servlet  assignment" Watch "Video servlet  assignment" New topic

Video servlet assignment

K. Tsang

Joined: Sep 13, 2007
Posts: 1973

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?


Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9043
Yes, it is possible to add code to change the values in the ArrayList rather than only adding values.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
It is sorta covered in the JavaRanch Style Guide.
subject: Video servlet assignment
Similar Threads
Servlet 4B assignment, formulation questions
jdbc 3 problem with buttons
Need help to code small programme
how to create array using linked list....
setIndexedProperty errors after reposting form data