This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Interview Guide this week in the Jobs Discussion 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: 3134

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?


K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
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
I agree. Here's the link:
subject: Video servlet assignment
It's not a secret anymore!