Apologies if this ends up being a stupid question, but I was just wondering why this is done on step 9 of the Notepad Exercise 1 tutorial (http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html) ...
public static final int INSERT_ID = Menu.FIRST;
... and then INSERT_ID
is used everywhere, instead of just using Menu.FIRST
directly instead everywhere?
I was thinking that I don't want to create any new variables if I don't have to, especially when they are static final already.
Is it expensive to create INSERT_ID
?