I have just started out with Java. I have been programing with C and C++ for some years now.
I have this problem. Im not able to call a non static method belonging to the main class from the static main method.
This is the code:
public class Helloworld {
private void call()
{
System.out.println(" World");
}
public static void main(String[] args) {
System.out.println("Hello");
call();
}
}
Thanks!