Cross language platform code conversion | SoloLearn: Learn to code for FREE!


Cross language platform code conversion

Is anyone aware of a process of cross language platform code conversion. Like converting code written in Java to python and vice versa without having to rewrite it?

1/29/2017 6:50:57 PM

Lewis Maina

1 Answer

New Answer


I am not, but I suppose if you wrote a bunch of Java methods that basically converted Java methods into Python functions it might work.. Like public static void print(String A){ System.out.println(A); } print("Hello"); print("Weird way to do things"); basically it becomes a Java method that is the Python function.. I guess if you wrote one of those for each Python function in your program, it would become a copy and paste situation to move your code.. but if you are going thru all that trouble, you might as well re-write it in Java anyway