Define the class Meny
before attempting to use it, i.e move
class Meny {
...
}
ahead of
Meny menyen = new Meny();
The order in which classes are defined matters to the compiler. In addition declare the Scanner
instance final so it can be referenced in the inner class
final Scanner input = new Scanner(System.in);