I have the following piece of code:
String week = this.getIntent().getStringExtra("weekNumber");
String correctWeek = Integer.toString(Calendar.WEEK_OF_YEAR);
if (week == correctWeek) {
correct();
}
else incorrect();
They are both "3", but the comparation result is false and I don't know why:
Where is the error?