Can you convert these to java file?

Can anybody convert these to java file. I want to create 1 extension but I don’t have the knowledge of java.

I don’t think so it makes sense.
I mean to say that if you wanted anyone to write whole the code and you want to take credit then it’s not right
First of all learn java and then how to make extensions and if you get stuck anywhere then you can take help from others

Thank You