package com.example.dangersample;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}

@@ -102,16 +102,45 @@
 .Bundle;
+%0Aimport android.widget.Toast;
 %0A%0Apublic
@@ -350,16 +350,65 @@
 y_main);
+%0A%0A        Toast.makeText(this, %22test%22, 0).show();
 %0A    %7D%0A%7D

Add toast