anyone have codes for bus reservation in java?

I am quite sure someone has done this homework project before, but that doesn't mean anyone here is going to give it to you. For one, it violates the Terms and Conditions of use for this site (which you, and everyone else here, agreed to when signing up here). For another, and even more important point, it does not help you for someone else to do your homework for you. You don't learn anything, and it simply makes the rest of your course that much harder. And I definately would not want to work with you once you finish your schooling, as I definately would not want to continue having to do your work for you.