How to cross a terrible hedgehog? This seemingly anecdotal task was pretty well decided by the developers of the Ja.NET project. As a result of their hard work, a unique creation appeared - JVM, working under the Microsoft .NET Framework. The developers claim partial compatibility with Java SE 1.5. class HelloWorld { public static void saySomethingUsingJava(String message) { System.out.println(message); } public static void saySomethingUsingDotNet(String message) { System.Console.WriteLine(message); } } public class MyProgram { public static void main(String[] args) { HelloWorld.saySomethingUsingJava("A message via Java API's"); HelloWorld.saySomethingUsingDotNet("A message via .NET framework API's"); } } Source: https://habr.com/ru/post/47107/
All Articles