Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.entiry;
- public class Student {
- private int id;
- private String name;
- private int balance;
- private String email;
- /**
- * @return the id
- */
- public int getId() {
- return id;
- }
- /**
- * @param id the id to set
- */
- public void setId(int id) {
- this.id = id;
- }
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
- /**
- * @param name the name to set
- */
- public void setName(String name) {
- this.name = name;
- }
- /**
- * @return the balance
- */
- public int getBalance() {
- return balance;
- }
- /**
- * @param balance the balance to set
- */
- public void setBalance(int balance) {
- this.balance = balance;
- }
- /**
- * @return the email
- */
- public String getEmail() {
- return email;
- }
- /**
- * @param email the email to set
- */
- public void setEmail(String email) {
- this.email = email;
- }
- public Student(int id, String name, int balance, String email) {
- super();
- this.id = id;
- this.name = name;
- this.balance = balance;
- this.email = email;
- }
- public Student()
- {
- }
- public String toString()
- {
- return id+","+name+","+balance+","+email;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement