Java tutorial
package org.apache.commons.lang3; /** * Dimit 2015113 */ public class Bean implements Cloneable { private int id; private String name; public Bean(int id, String name) { this.id = id; this.name = name; } /** * @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; } /* (non-Javadoc) * @see java.lang.Object#toString() */ @Override public String toString() { return "Bean [id=" + id + ", name=" + name + "]"; } }