Using the Javonet Fluent Interface
Javonet offers a robust fluent interface that lets you simplify and shorten operations on objects.
// Todo: activate Javonet and add reference to .NET library
// call static method
String response = Javonet.getType("TestNamespace.TestClass").invoke("SayHello", "Student");
// write response to console
System.out.println(response);
Was this article helpful?