Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
flowchart
Polymorphism
Home
Questions
Questions
Study lists
Ashoor Questions
555 Questions
(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:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
288
(New Account class) An Account class was specified in Programming Exercise 9.7. Design a new Account class as follows:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
224
(Shuffle ArrayList) Write the following method that shuffles the elements in an ArrayList of integers
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
195
(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
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
267
(The Course class) Rewrite the Course class in Listing 10.6. Use an ArrayList to replace an array to store students
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
185
(Maximum element in ArrayList) Write the following method that returns the maximum value in an ArrayList of integers. The method returns null if the list is null or the list size is 0
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
191
(Subclasses of Account) In Programming Exercise 9.7, the Account class was defined to model a bank account. An account has the properties account number, balance, annual interest rate, and date created, and methods to deposit and withdraw funds
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
188
(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two subclasses named Student and Employee. Make Faculty and Staff subclasses of Employee
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
4
1
653
(The Triangle class) Design a class named Triangle that extends GeometricObject. The class contains:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
164
(Implement the StringBuilder class) The StringBuilder class is provided in the Java library. Provide your own implementation for the following methods (name the new class MyStringBuilder2):
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
182
(Implement the StringBuilder class) The StringBuilder class is provided in the Java library. Provide your own implementation for the following methods (name the new class MyStringBuilder1):
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
216
(Calculator) Revise Listing 7.9, Calculator.java, to accept an expression as a string in which the operands and operator are separated by zero or more spaces. For example, 3+4 and 3 + 4 are acceptable expressions. Here is a sample run:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
210
(New string split method) The split method in the String class returns an array of strings consisting of the substrings split by the delimiters. However, the delimiters are not returned
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
165
Total:
555
Previous
6
7
8
9
10
Next
Go