Hey everybody,
chapter 5, the earthquake example.
In the Earthquake.java class the author uses the 'switch/case' instead of 'if' statements. I was wondering, if there is a bigger reason for doing that.
Code:
switch(item.getItemId()) {
case (MENU_UPDATE): {
refreshEartchquakes();
return true;
}
}
Can someone tell me, if there are some speed advantages or anything like that?
Thanks in advance.
regards nyyrikki