// StudentEntryForm app // Source code file: ConfirmationActivity.java package it372.smiths.studententryform; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.widget.TextView; public class ConfirmationActivity extends AppCompatActivity { private TextView txtName; private TextView txtGrade; private TextView txtGender; private TextView txtScholarship; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_confirmation); Intent intent = getIntent( ); String info = intent.getStringExtra("info"); String[ ] fields = info.split(";"); String name = fields[0]; String grade = fields[1]; String gender = fields[2]; String scholarship = fields[3]; txtName = findViewById(R.id.txt_name); txtGrade = findViewById(R.id.txt_grade); txtGender = findViewById(R.id.txt_gender); txtScholarship = findViewById(R.id.txt_scholarship); txtName.setText("Name: " + name); txtGrade.setText("Grade: " + grade); txtGender.setText("Gender:" + gender); txtScholarship.setText("Scholarship? " + scholarship); } }