I try to write code in java and C#