Example of creating a 'HelloWorld' Java object, by pulling in an external JAR file.
The Jar file only contains a single class, 'HelloWorld', which is outlined below:
Java says: Hello World
HelloWorld.java
public class HelloWorld
{
public HelloWorld()
{
//do nothing
}
public String hello()
{
return "Hello World";
}
}