I am trying to make it so that the canvas in my world corresponds to what the user input is. I have tried putting the method before the "Super" but it says that "Super" needs to be first line so I don't know how to get around it. Thank you in advance
(I would like the "size" variable to determine the size of my canvas)
public void started()
{
size = Integer.parseInt(JOptionPane.showInputDialog("How big would you like your grid?"));
}
public MyWorld()
{
super(600, 600, 1);
started();
