Write a method named displayList() that has one parameter of type Vector and has a return value of void. The method uses an iterator to display the contents of the Vector.
What will be an ideal response?
```
public static void displayList(Vector vct)
{
Iterator i = vct.iterator();
while(i.hasNext())
System.out.println(i.next());
}
```
Computer Science & Information Technology
You might also like to view...
An index and a table of contents are terms that refer to the same thing
Indicate whether the statement is true or false
Computer Science & Information Technology
Critical Thinking Questions ? Emma is the supervisor and a lead at Rainbow Music. She is responsible for reviewing and editing the audio files before they are made accessible to the audience of the company's music website. ? ?Emma embeds an audio file onto the music webpage. Which of the following elements should she use inside the audio element to enable it to work in all browsers?
A. ?auto B. ?source C. ?loop D. ?param
Computer Science & Information Technology