First Challenge


#1


import android.view.View.OnClickListener;

OnClickListener oclButton = new OnClickListener(){
@Override
public void onClick(View v) {
mCurrentIndex = (mCurrentIndex + 1) % mQuestionBank.length;
updateQuestion();
}
};

mQuestionTextView.setOnClickListener(oclButton);

mNextButton.setOnClickListener(oclButton);

Thanks!