How to use Break and Continue in Java