Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. package com.entiry;
  2.  
  3. public class Student {
  4. private int id;
  5. private String name;
  6. private int balance;
  7. private String email;
  8. /**
  9. * @return the id
  10. */
  11. public int getId() {
  12. return id;
  13. }
  14. /**
  15. * @param id the id to set
  16. */
  17. public void setId(int id) {
  18. this.id = id;
  19. }
  20. /**
  21. * @return the name
  22. */
  23. public String getName() {
  24. return name;
  25. }
  26. /**
  27. * @param name the name to set
  28. */
  29. public void setName(String name) {
  30. this.name = name;
  31. }
  32. /**
  33. * @return the balance
  34. */
  35. public int getBalance() {
  36. return balance;
  37. }
  38. /**
  39. * @param balance the balance to set
  40. */
  41. public void setBalance(int balance) {
  42. this.balance = balance;
  43. }
  44. /**
  45. * @return the email
  46. */
  47. public String getEmail() {
  48. return email;
  49. }
  50. /**
  51. * @param email the email to set
  52. */
  53. public void setEmail(String email) {
  54. this.email = email;
  55. }
  56. public Student(int id, String name, int balance, String email) {
  57. super();
  58. this.id = id;
  59. this.name = name;
  60. this.balance = balance;
  61. this.email = email;
  62. }
  63. public Student()
  64. {
  65.  
  66. }
  67. public String toString()
  68. {
  69. return id+","+name+","+balance+","+email;
  70. }
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement