package com.example.pr2_sh;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Button;
public class Game_Activity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_game_);
int partA = 9;
int partB = 9;
int correctAnswer = partA * partB;
int wrongAnswer1 = correctAnswer - 1;
int wrongAnswer2 = correctAnswer + 1;
TextView textObjectPartA =(TextView)findViewById(R.id.textPartA);
TextView textObjectPartB =(TextView)findViewById(R.id.textPartB);
Button buttonObjectChoice1 =(Button)findViewById(R.id.buttonChoice1);
Button buttonObjectChoice2 =(Button)findViewById(R.id.buttonChoice2);
Button buttonObjectChoice3 =(Button)findViewById(R.id.buttonChoice3);
textObjectPartA.setText(partA);
textObjectPartB.setText(partB);
buttonObjectChoice1.setText(correctAnswer);
buttonObjectChoice2.setText(wrongAnswer1);
buttonObjectChoice3.setText(wrongAnswer2);
//"" +
}
}