Array-Based List Class Java
boys4hIn Jgrasp
Write your own array-based list class from scratch using generics.
Implement an interface called CommonList.java that supports all list operations.public interface GeneralList,<E>, public void add (Eelement), ect....
Implement those interface methods in a class called SSNList.java. The purpose of this class is to create a concrete class for storing SSN objects.
Create a SSN.java class that stores a name, SSNumber, (9 digits only each digit must be in the range of 0 through 9 otherwise throw an exception in the SSN class which is caught in main()).
Demonstrate the classes in a file called SSNDemo.java. This file should demonstrate all the operations in the interface.
- 12 years ago
- 25
Answer(0)
Bids(1)
other Questions(10)
- In which stage would each of the following be? Be sure to answer the questions with full sentences, and justify...
- A tree trunk is buried in sediments. Minerals slowly take the place of the materials that formed the tree trunk....
- 2x-2x^2/x^2-1
- which is more healthy sweeteners or sugar and why
- If the social security administration increased the taxable wage base from $94,200 to $97,500 and the 6.2% tax rate is...
- 74x6=
- When a cat sleep on the a table the net force on it is
- what is something that stays the same and never changes?
- what two long-term trends mark the expansion of the american electorate?
- If you have trapezoid ABCD, with AB || DC and median EF, and AB = 2m-19 and EF = m-2,...