package com.example.girlswhocode.test;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.content.Intent;
import android.view.View;
import android.widget.*;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button button2 = (Button) findViewById(R.id.button2);
        button2.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {mentalhealth();
            }
        });


        Button police= (Button) findViewById(R.id.button3);
        police.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {arrest();
            }
        });
        Button immigration = (Button)findViewById(R.id.button4);
        immigration.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {immigrants();
            }
        });
        Button queer= (Button) findViewById(R.id.button5);
        queer.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {gay();
            }
        });
        Button abuse= (Button) findViewById(R.id.button7);
        abuse.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {abused();
            }
        });
    }

    private void mentalhealth() {
        Intent intent = new Intent(this, Activity2.class);
        startActivity(intent);
    }
    private void arrest(){
        Intent intent = new Intent(this, Police.class);
        startActivity(intent);
    }
    private void immigrants(){
        Intent intent = new Intent(this, Immigration.class);
        startActivity(intent);
    }
    public void gay(){
        Intent intent = new Intent(this, LGBT.class);
        startActivity(intent);
    }
    public void abused(){
        Intent intent = new Intent(this, Abuse.class);
        startActivity(intent);
    }
}
@@ -1464,24 +1464,235 @@
        %7D);%0D%0A
+        Button assault= (Button) findViewById(R.id.button17);%0D%0A        assault.setOnClickListener(new View.OnClickListener() %7B%0D%0A            public void onClick(View v) %7Bassaulted();%0D%0A            %7D%0D%0A        %7D);%0D%0A
     %7D%0D%0A%0D%0A   
@@ -2319,9 +2319,144 @@
 %0A    %7D%0D%0A
-%7D
+    public void assaulted()%7B%0D%0A        Intent intent = new Intent(this, SexualAssault.class);%0D%0A        startActivity(intent);%0D%0A    %7D%0D%0A%7D%0D%0A

Update MainActivity.java