daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void onClick(View v) {
  2.             if(thing1 == thing2) {
  3.                 Intent intent = new Intent(MainActivity.this, MainActivity2.class);
  4.                 intent.putExtra("userName", String.valueOf(Equal));
  5.                 startActivity(intent);
  6.             }
  7.             else {
  8.                 Intent intent = new Intent(MainActivity.this, MainActivity2.class);
  9.                 intent.putExtra("userName", String.valueOf(Not_Equal));
  10.                 startActivity(intent);}
  11.         }
  12.    
  13. if(fooString1.equals(fooString2)){
  14. //equal condition true
  15. }
RAW Paste Data
Top