Just to get the terminology straight you changed the static main() method into a class's constructor. (same name as class, doesn't return anything). As noted before a constructor is the right place...
Type: Posts; User: pbrockway2
Just to get the terminology straight you changed the static main() method into a class's constructor. (same name as class, doesn't return anything). As noted before a constructor is the right place...
When you run a class what the runtime invokes is a method like:
public static void main(String[] args) {
You can't leave out the "static" for the reason described above.