Your main method declaration is wrong.


public void main( String[] args ) // declare main method

This is just a method, not a main method. It should be like this,


public static void...