paste some code. one of the things that i noticed with java is that i had to initialize an object before i could use it.
i did that with new
Code:
package helloworldapp;
/**
*
* The HelloWorldApp class implements an application that
* simply prints "Hello World!" to standard output.
*
* @author wiel
*/
public class HelloWorldApp {
/**
* @param args the command line arguments
*/
public void prnt(){
System.out.println("Hello World!");
}
public static void main(String[] args) {
HelloWorldApp a;
a=new HelloWorldApp();
a.prnt();// Display the string
}
}