Witam,
Mam taką klasę:
public class Server {
public static void main(String[] args) throws Exception {
String plansza;
Scanner odczyt = new Scanner(System.in);
plansza = odczyt.nextLine();
if ( "3x3".equals(plansza))
System.out.println("Będziesz grać na planszy 3x3");
if ( "4x4".equals(plansza))
System.out.println("Będziesz grać na planszy 4x4");
}
i chcę mieć dostęp do zmiennej plansza w tej klasie
class Game{
}
Jak to zrobić?