program in Java language