Buggy code:
<START_BUG> public class NewWorkout extends MenuNavigation implements View . OnClickListener { <END_BUG> public int k = 0 ; public static EditText editText1 ; protected TextView tv2 ; protected Button selectChestButton ; protected Button selectBackButton ; protected Button selectShoulderButton ; protected Button selectBicepButton ; protected Button selectTricepButton ; protected Button selectLegButton ; protected Button selectAbButton ; public static ArrayList < CharSequence > workoutList1 = new ArrayList < > ( ) ; public static ArrayList < CharSequence > workoutList2 = new ArrayList < > ( ) ; public static ArrayList < CharSequence > workoutList3 = new ArrayList < > ( ) ; public static ArrayList < CharSequence > workoutList4 = new ArrayList < > ( ) ; public static ArrayList < CharSequence > workoutList5 = new ArrayList < > ( ) ; public static int numberOfWorkouts = 0 ; public static String workoutName01 = "Enter<seq2seq4repair_space>a<seq2seq4repair_space>New<seq2seq4repair_space>Workout" ; public static String workoutName02 = "Enter<seq2seq4repair_space>a<seq2seq4repair_space>New<seq2seq4repair_space>Workout" ; public static String workoutName03 = "Enter<seq2seq4repair_space>a<seq2seq4repair_space>New<seq2seq4repair_space>Workout" ; public static String workoutName04 = "Enter<seq2seq4repair_space>a<seq2seq4repair_space>New<seq2seq4repair_space>Workout" ; public static String workoutName05 = "Enter<seq2seq4repair_space>a<seq2seq4repair_space>New<seq2seq4repair_space>Workout" ; protected CharSequence [ ] chest = new CharSequence [ ] { "Barbell<seq2seq4repair_space>Bench<seq2seq4repair_space>Press" , "Incline<seq2seq4repair_space>Dumbbell<seq2seq4repair_space>Press" , "Incline<seq2seq4repair_space>Dumbbell<seq2seq4repair_space>Fly" , "Decline<seq2seq4repair_space>Dumbbell<seq2seq4repair_space>Press" , "Incline<seq2seq4repair_space>Barbell<seq2seq4repair_space>Bench<seq2seq4repair_space>Press" , "Butterfly" , "Cable<seq2seq4repair_space>Crossover" , "Flat<seq2seq4repair_space>Dumbbell<seq2seq4repair_space>Press" , "Flat<seq2seq4repair_space>Dumbbell<seq2seq4repair_space>Fly" , "Smith<seq2seq4repair_space>Press" } ; protected CharSequence [ ] back = new CharSequence [ ] { "Deadlift" , "Bent<seq2seq4repair_space>Over<seq2seq4repair_space>Row" , "Chin<seq2seq4repair_space>Ups" , "Good<seq2seq4repair_space>Mornings" , "T-Bar<seq2seq4repair_space>Rows" , "Seated<seq2seq4repair_space>Cable<seq2seq4repair_space>Rows" , "Leverage<seq2seq4repair_space>High<seq2seq4repair_space>Row" , "One<seq2seq4repair_space>Arm<seq2seq4repair_space>Dumbbell<seq2seq4repair_space>Row" , "Wide<seq2seq4repair_space>Grip<seq2seq4repair_space>Pull<seq2seq4repair_space>ups" , "Wide<seq2seq4repair_space>Grip<seq2seq4repair_space>Lat<seq2seq4repair_space>Pulldown" } ; protected CharSequence [ ] shoulders = new CharSequence [ ] { "Military<seq2seq4repair_space>Press" , "Lateral<seq2seq4repair_space>Raises" , "Upright<seq2seq4repair_space>Rows" , "Shrugs" , "Arm<seq2seq4repair_space>Circles" , "Vertical<seq2seq4repair_space>Raises" , "Arnold<seq2seq4repair_space>Press" , "Dumbbell<seq2seq4repair_space>Shoulder<seq2seq4repair_space>Press" , "Clean<seq2seq4repair_space>and<seq2seq4repair_space>Jerk" , "Reverse<seq2seq4repair_space>Flys" } ; protected CharSequence [ ] biceps = new CharSequence [ ] { "Barbell<seq2seq4repair_space>Curl" , "Dumbbell<seq2seq4repair_space>Curl" , "Hammer<seq2seq4repair_space>Curl" , "EZ<seq2seq4repair_space>Bar<seq2seq4repair_space>Curl" , "Drag<seq2seq4repair_space>Curl" , "Cable<seq2seq4repair_space>Curl" , "Preacher<seq2seq4repair_space>Curl" , "Concentration<seq2seq4repair_space>Curl" } ; protected CharSequence [ ] triceps = new CharSequence [ ] { "Skullcrushers" , "Rope<seq2seq4repair_space>Pushdowns" , "Bench<seq2seq4repair_space>Dips" , "Close<seq2seq4repair_space>Grip<seq2seq4repair_space>Bench<seq2seq4repair_space>Press" , "EZ<seq2seq4repair_space>Bar<seq2seq4repair_space>Tricep<seq2seq4repair_space>Extension" , "Seated<seq2seq4repair_space>Tricep<seq2seq4repair_space>Press" } ; protected CharSequence [ ] legs = new CharSequence [ ] { "Barbell<seq2seq4repair_space>Squats" , "Leg<seq2seq4repair_space>Press" , "Standing<seq2seq4repair_space>Calf<seq2seq4repair_space>Raises" , "Dumbbell<seq2seq4repair_space>Lunges" , "Seated<seq2seq4repair_space>Calf<seq2seq4repair_space>Raises" , "Wall<seq2seq4repair_space>Squats" , "Lying<seq2seq4repair_space>Leg<seq2seq4repair_space>Curls" } ; protected CharSequence [ ] abs = new CharSequence [ ] { "Crunches" , "Sit<seq2seq4repair_space>Ups" , "Leg<seq2seq4repair_space>Raises" , "Plank" , "Air<seq2seq4repair_space>Bike" , "Ab<seq2seq4repair_space>Rollout" , "Oblique<seq2seq4repair_space>Crunches" } ; protected ArrayList < CharSequence > myList = new ArrayList < CharSequence > ( ) ; public void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( newworkout_layout ) ; NewWorkout . editText1 = ( ( EditText ) ( findViewById ( editText ) ) ) ; tv2 = ( ( TextView ) ( findViewById ( textView2 ) ) ) ; selectChestButton = ( ( Button ) ( findViewById ( button_Chest ) ) ) ; selectBackButton = ( ( Button ) ( findViewById ( button_Back ) ) ) ; selectShoulderButton = ( ( Button ) ( findViewById ( button_Shoulder ) ) ) ; selectBicepButton = ( ( Button ) ( findViewById ( button_Bicep ) ) ) ; selectTricepButton = ( ( Button ) ( findViewById ( button_Tricep ) ) ) ; selectLegButton = ( ( Button ) ( findViewById ( button_Leg ) ) ) ; selectAbButton = ( ( Button ) ( findViewById ( button_Abs ) ) ) ; selectChestButton . setOnClickListener ( this ) ; selectBackButton . setOnClickListener ( this ) ; selectShoulderButton . setOnClickListener ( this ) ; selectBicepButton . setOnClickListener ( this ) ; selectTricepButton . setOnClickListener ( this ) ; selectLegButton . setOnClickListener ( this ) ; selectAbButton . setOnClickListener ( this ) ; } public void onBackPressed ( ) { } public void onClick ( View view ) { } protected void showSelectDialog ( final CharSequence [ ] list ) { } public void submitClicked ( View view ) { } protected void saveValues ( ) { } protected void onChangeSelected ( ) { } }

Fix:
public class NewWorkout extends Activity implements View . OnClickListener {