Tillägg. Då meny() inte är static (vilken den inte ska vara) behöver du köra:
[PHP]public class Funwall
{
public void meny()
{
yadda yadda;
}
public static void main(String[] args)
{
Funwall funwall = new Funwall();
funwall.meny();
}
}[/PHP]
public class Funwall
{
Scanner sc = new Scanner(System.in);
public int meny()
{
blahblah
return sc.nextInt();
}
public void newGame() { return @ gameover }
public static void main(String[] args)
{
Funwall f = new Funwall();
while blahblah
{
int selection = f.meny();
switch (selection)
{
case 1:
f.newGame();
break;
case 2:
....
}
}
}
}