my java programming train codes