help with measuring performance classes

Performance Test: Implement a program that measures the performance of ArrayList, Vector, LinkedList by inserting 100,000 Strings and then deleting them one by one. Use a Calendar Object (p. 304) to measure the time in milliseconds. In addition to the screenshots give a table with the results. Bonus: Add sorting to the benchmark. What changes?

First, I think you're supposed to use the Vector class in the API (java.util.Vector) instead of defining your own Vector class. Writing your own classes with the same name as classes in the API can lead to serious confusion later.

Second, your compilation error seems to be because you're trying to define a method inside the body of another method (getTime inside of main).

Third, there are other problems with braces. I think it would help to be more careful with your indentation and make sure these line up. (I've added Code Tags to your original post so that your indentation shows.)