add Java skeleton code