Quote:</divHow can I convert this code from C# to java?
Simple: Learn C#, then learn Java. Once you have a good working knowledge of both, it should be pretty easy for you.
If on the other hand you want others to do your work for you, you have come to the wrong site ... I suggest you go to Freelancer.com and ask there.
But be aware: you get what you pay for. Pay peanuts, get monkeys.
The idea of "development" is as the word suggests: "The systematic use of scientific and technical knowledge to meet specific objectives or requirements."
BusinessDictionary.com[^]
That's not the same thing as "have a quick google and give up if I can't find exactly the right code".
So either pay someone to do it, or learn how to write it yourself. We aren't here to do it for you.