ML in Java and C language