Android Intent로 값을 다음 액티비티로 넘기기

보내는 곳

Intent intent = new Intent(getContext(),NextActivity.class);
intent.putExtra("teamA", "첫번째값"); // "명칭", "실제값"
intent.putExtra("teamB", "두번째값");
intent.putExtra("tempint", 123);
startActivity(intent);

받는 곳

Intent intent = getIntent();

String teamA = intent.getExtras().getString("teamA"); // teamA에 저장된 값을 가져온다.
String teamB = intent.getExtras().getString("teamB");
int temp = intent.getExtras().getInt("tempint");