Demo entry 6730836

animalbean

   

Submitted by lansen on Apr 09, 2018 at 09:34
Language: Java. Code size: 538 Bytes.

private int icon;
	private String name;
	private String speak;

	public AnimalBean(int icon, String name, String speak) {
		this.icon = icon;
		this.name = name;
		this.speak = speak;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSpeak() {
		return speak;
	}

	public void setSpeak(String speak) {
		this.speak = speak;
	}

	public int getIcon() {
		return icon;
	}

	public void setIcon(int icon) {
		this.icon = icon;
	}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).