How would I make this work?
I want to create a new class to store variables & recall them but it doesn't work, is there a way to fix this or should I try a different way? Thanks!
You have two options:
dont_work work = new dont_work(); into the main function
work as a static variable
work is an instance variable of the Main class, but because main is a static function, you're not allowed to use it.