Java == C#.Net

I programmed in Java as easily as I usually do in C#. Similar functionalities and almost the same libraries made it possible to change over with the least amount of effort. In an example program, compare various functions.