machinelearing code in java