Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Introduction to Java Programming, Comprehensive Version (10th Edition)
by
Y. Danial liang
Edition:
10th edition
ISBN13:
978-0133761313
ISBN10:
0133761312
772
Java programming
Home
Books
Introduction to Java Programming, Comprehensive Version (10th Edition)
Similar Books
No books found
Title
Chapter: 11 /
Q: 5
(The Course class) Rewrite the Course class in Listing 10.6. Use an ArrayList to replace an array to store students
Chapter: 11 /
Q: 6
(Use ArrayList) Write a program that creates an ArrayList and adds a Loan object, a Date object, a string, and a Circle object to the list, and use a loop to display all the elements in the list by invoking the object’s toString() method
Chapter: 11 /
Q: 7
(Shuffle ArrayList) Write the following method that shuffles the elements in an ArrayList of integers
Chapter: 11 /
Q: 8
(New Account class) An Account class was specified in Programming Exercise 9.7. Design a new Account class as follows:
Chapter: 11 /
Q: 9
(Largest rows and columns) Write a program that randomly fills in 0s and 1s into an n-by-n matrix, prints the matrix, and finds the rows and columns with the most 1s. (Hint: Use two ArrayLists to store the row and column indices with the most 1s.) Here is a sample run of the program:
Chapter: 11 /
Q: 10
(Implement MyStack using inheritance) In Listing 11.10, MyStack is implemented using composition. Define a new stack class that extends ArrayList
Chapter: 11 /
Q: 11
(Sort ArrayList) Write the following method that sorts an ArrayList of numbers:
Chapter: 11 /
Q: 12
(Sum ArrayList) Write the following method that returns the sum of all numbers in an ArrayList:
Chapter: 11 /
Q: 13
(Remove duplicates) Write a method that removes the duplicate elements from an array list of integers using the following header:
Chapter: 11 /
Q: 14
(Combine two lists) Write a method that returns the union of two array lists of integers using the following header:
total questions:
772
Previous
29
30
31
32
33
Next
Questions
772
Views
Best Answers
299
Points
5
×
Close
add reason
reason