if () not working
<p>This is my code: </p>

<pre><code>Log.d("inf", loader);
if (loader == "Klasse"){
    Log.d("inf", "Klasse yes");
    OPTS = new String[] { //Something };
} else {
    Log.d("inf", "Klasse no");
    OPTS = new String[] { //Something };
}
</code></pre>

<p>In the first Line, the Output is exactly "Klasse" but the next output is everytime "Klasse no". The loader String is set as follows:</p>

<pre><code>String loader = "";
Bundle exta = getIntent().getExtras();
    if(exta !=null) {
        try {
            json = new JSONObject(exta.getString("json"));
            loader = exta.getString("order");
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }
</code></pre>

<p>Do you guys have any Idea whats wrong?</p>
