Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
class-diagram
Polymorphism
if-else
flowchart
Home
Questions
Questions
Study lists
Ashoor Questions
555 Questions
(The Octagon class) Write a class named Octagon that extends GeometricObject and implements the Comparable and Cloneable interfaces. Assume that all eight sides of the octagon are of equal length. The area can be computed using the following formula:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
146
(Enable Rectangle comparable) Rewrite the Rectangle class in Listing 13.3 to extend GeometricObject and implement the Comparable interface. Override the equals method in the Object class. Two Rectangle objects are equal if their areas are the same. Draw the UML diagram that involves Rectangle, Geome
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
127
(Enable Circle comparable) Rewrite the Circle class in Listing 13.2 to extend GeometricObject and implement the Comparable interface. Override the equals method in the Object class. Two Circle objects are equal if their radii are the same. Draw the UML diagram that involves Circle, GeometricObject,
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
129
(The Colorable interface) Design an interface named Colorable with a void method named howToColor(). Every class of a colorable object must implement the Colorable interface. Design a class named Square that extends GeometricObject and implements Colorable. Implement howToColor to display the messag
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
133
(Revise the MyStack class) Rewrite the MyStack class in Listing 11.10 to perform a deep copy of the list field
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
103
(The ComparableCircle class) Define a class named ComparableCircle that extends Circle and implements Comparable. Draw the UML diagram and implement the compareTo method to compare the circles on the basis of area
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
131
(Enable GeometricObject comparable) Modify the GeometricObject class to implement the Comparable interface, and define a static max method in the GeometricObject class for finding the larger of two GeometricObject objects
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
177
(Display calendars) Rewrite the PrintCalendar class in Listing 6.12 to display a calendar for a specified month using the Calendar and GregorianCalendar classes. Your program receives the month and year from the command line. For example:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
70
(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
76
(Shuffle ArrayList) Write the following method that shuffles an ArrayList of numbers:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
80
(Triangle class) Design a new Triangle class that extends the abstract GeometricObject class. Draw the UML diagram for the classes Triangle and GeometricObject and then implement the Triangle class
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
160
(Search Web) Modify Listing 12.18 WebCrawler.java to search for the word Computer Programming starting from the URL http://cs.armstrong.edu/liang. Your program terminates once the word is found. Display the URL for the page that contains the word
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
66
(Ranking summary) Write a program that uses the files described in Programming Exercise 12.31 and displays a ranking summary table for the first five girl’s and boy’s names as follows:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
249
Total:
555
Previous
2
3
4
5
6
Next
Go