I am very new to Android programming!

I want to do something really simple:

```
if(i < 1) 
    System.out.println("Ja");
 else
    System.out.println("Nein");

```

My first idea how to achieve this was to have a TextView in xml with a String resource:

```
<TextView
android:id="@+id/mytextview"
android:text="@string/Entscheidung"
android:layout_width="match_parent"
android:layout_height="match_parent" />

```

and then acess that resource via Java code:

```
R.string.Entscheidung = "Ja";

```

but it doesnt work: Error:(13, 17) error: cannot assign a value to final variable Entscheidung

Is there another way to do this? 

Thank you !