There are a few things I would recommend:

1. Use comments. These should help explain what your code is doing in a higher-level form.

2. Don't use Vector. Use the ArrayList class instead. There...