127. Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, such that: Only one letter can be changed at a time Each intermediate word must exist in the wo
我们可以定义一个自己的CommActivity继承自Activity,然后让每个自定义Activity继承CommActivity,就可以做到. 例如: public class CommActivity extends Activity{ //.... public boolean onCreateOptionsMenu(Menu menu) { return super.onCreateOptionsMenu(menu); } //.... } public class MyActivity