Guest User

Untitled

a guest
Dec 7th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment