C# Tasks done in JAVA