package jp.gihyo.mitoma.android.s1901includestep01;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class SubActivity1 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sub1);
        Button button1 = findViewById(R.id.button11);
        button1.setOnClickListener(new SubActivity1.ButtonClick());    }
    private class ButtonClick implements View.OnClickListener{
        public void onClick(View view){
           finish();
        }
    }
}