package com.example.myapplication; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.widget.TextView; public class Main2Activity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main2); Intent myNewIntent=getIntent(); String theReceivedNameValue=myNewIntent.getStringExtra("theOperatorValueExtra"); int theReceivedValue1=myNewIntent.getIntExtra("theValue1Extra",0); int theReceivedValue2=myNewIntent.getIntExtra("theValue2Extra",0); int theReceivedValue3=myNewIntent.getIntExtra("theValue3Extra",0); TextView output= (TextView)findViewById(R.id.myOutput); String result=""+theReceivedValue1; int nextValue=theReceivedValue1; for (int i=0; i