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
(IllegalTriangleException) Programming Exercise 11.1 defined the Triangle class with three sides. In a triangle, the sum of any two sides is greater than the other side
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
283
(IllegalArgumentException) Modify the Loan class in Listing 10.2 to throw IllegalArgumentException if the loan amount, interest rate, or number of years is less than or equal to zero
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
201
(ArrayIndexOutOfBoundsException) Write a program that meets the following requirements:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
191
(InputMismatchException) Write a program that prompts the user to read two integers and displays their sum. Your program should prompt the user to read the number again if the input is incorrect
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
198
(NumberFormatException) Listing 7.9, Calculator.java, is a simple commandline calculator
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
323
(Algebra: perfect square) Write a program that prompts the user to enter an integer m and find the smallest integer n such that m * n is a perfect square. (Hint: Store all smallest factors of m into an array list. n is the product of the factors that appear an odd number of times in the array list
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
235
(Addition quiz) Rewrite Listing 5.1 RepeatAdditionQuiz.java to alert the user if an answer is entered again. Hint: use an array list to store answers. Here is a sample run:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
158
(Area of a convex polygon) A polygon is convex if it contains any line segments that connects two points of the polygon. Write a program that prompts the user to enter the number of points in a convex polygon, then enter the points clockwise, and display the area of the polygon. Here is a sample run
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
281
(Combine two lists) Write a method that returns the union of two array lists of integers using the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
172
(Remove duplicates) Write a method that removes the duplicate elements from an array list of integers using the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
210
(Sum ArrayList) Write the following method that returns the sum of all numbers in an ArrayList:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
168
(Sort ArrayList) Write the following method that sorts an ArrayList of numbers:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
171
(Implement MyStack using inheritance) In Listing 11.10, MyStack is implemented using composition. Define a new stack class that extends ArrayList
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
168
Total:
555
Previous
5
6
7
8
9
Next
Go