it is possible to convert this source code to java code?