Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 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 SetGroupName(String Name)
  26. {
  27. GroupName = Name;
  28. }
  29. public String GetGroupName ()
  30. {
  31. return GroupName;
  32. }
  33. public String GetContactName ()
  34. {
  35. return GroupName;
  36. }
  37. public void SetContactName(String Name)
  38. {
  39. ContactName = Name;
  40. }
  41. public boolean IsInGroup ()
  42. {
  43. return IsInGroup;
  44. }
  45. public void RemoveFromGroup ()
  46. {
  47. GroupName = "NONE";
  48. IsInGroup = false;
  49. }
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement