Variables using between methods
<p>Unfortunately I'm a total beginner in coding with java. My question now is why the variables <code>runde</code>, <code>punkte</code> in the <code>starteRunde()</code> 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?</p>

<pre><code>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();
}
</code></pre>

<p>...</p>