Ive never used the ? operator before and i'm trying to figure out how it works.
I have been reading countless pages and decided to try for my self.
i have the following statement:
getSelection().equalsIgnoreCase("Måned") ? calendarView.currentlyViewing.set(Calendar.Year) : showPopup();
So as far as i cant understand if the left hand side (boolean) is true it will set my calendarView.to year and if not (getSelection is not equal to måned) it will call the method showPopup();
but when i type this into eclipse i get a syntax error.
can someone explain what i am doing wrong?