Welcome to the Ranch. I have added code tags to your post, which formats it and makes it easier to read. Next time, just highlight your
java then click that little "code" button above where you enter the post, and it will insert them for you.
Next...What makes you think you have bugs? It's generally easier for folk to help you if you give us all the info - why you think there are bugs, what the program does (or doesn't do), what you expect it to do, or what the compiler error is that you get when you compile it.
The easier you make it for someone to help you, the more likely you will get that help.