Unfortunately I'm a total beginner in coding with java. My question now is why the variables runde, punkte in the starteRunde() method aren't defined. But actually I have defined them in the method above didn't I? Why can't I use these variables in the following methods?
public class GameActivity extends Activity implements View.OnClickListener{
private void spielStarten(){
boolean spielLaeuft = true;
int runde = 0;
int punkte;
punkte = 0;
starteRunde();
}
private void starteRunde(){
runde = runde + 1;
int muecken = runde * 10;
int gefangeneMuecken = 0;
int zeit = 60;
bildschirmAktualisieren();
}
...