I have to say, I don't think you understand what you're trying to do. It looks like List12Tester is intended to be a set of
unit tests to test a class List12. In other words, you
should be creating a List12 - but that class is missing. It looks like instead trying to locate the correct class, you've decided to just instantiate a completely different class instead.
This will become clear as you fix each compiler error:
- Your code now won't compile because List12Tester doesn't take a generic type, but you're providing one (
String)
- Fix that, and it will tell you that List12Tester doesn't have a no-arg constructor
- Fix that, and it will complain that you're trying to assign a List12Tester object to a List variable
- Fix that, and it will say there's no add method in the List12Tester class.
I'd recommend you go back and clarify exactly what your code is trying to achieve.