Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. package com.TRYING_AGAIN.me;
  2.  
  3. public class Contact {
  4. String ContactName;
  5. String GroupName;
  6. boolean IsInGroup;
  7. Contact ()
  8. {
  9. ContactName = "No_Name";
  10. GroupName = "NONE";
  11. IsInGroup = false;
  12. }
  13. Contact (String Name)
  14. {
  15. ContactName = Name;
  16. GroupName = "NONE";
  17. IsInGroup = false;
  18. }
  19. Contact (String Name, String Group)
  20. {
  21. ContactName = Name;
  22. GroupName = Group;
  23. IsInGroup = true;
  24. }
  25. public void Set(String Name)
  26. {
  27. GroupName = Name;
  28. }
  29. public String Get ()
  30. {
  31. return GroupName;
  32. }
  33. public boolean IsInGroup ()
  34. {
  35. return IsInGroup;
  36. }
  37. public void RemoveFromGroup ()
  38. {
  39. GroupName = "NONE";
  40. IsInGroup = false;
  41. }
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement