Being brand new to Java I'm not sure why this when called with android:onClick="changeInfo" isn't changing the text view back to the original value.
public class JavaTest extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_java_test);
}
public void changeInfo(View view){
    setContentView(R.layout.activity_java_test);
    TextView t = (TextView)findViewById(R.id.textSpace1);
    if (t.getText()==getResources().getString(R.string.lorem_ipsum)){
        t.setText("[Email Here]");
    }
    else{
        t.setText(getResources().getString(R.string.lorem_ipsum));
    }
}
Could anyone help, thank you.