Last active
October 20, 2015 06:14
-
-
Save Elrhino/fd8c66232a567fd1db1b to your computer and use it in GitHub Desktop.
Code snippets from toaster launcher part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Toaster { | |
private String name; | |
private String coordinates; | |
private String power; | |
private Toaster() { | |
// For serialization | |
} | |
public Toaster(String name, String coordinates, String power) { | |
this.name = name; | |
this.coordinates = coordinates; | |
this.power = power; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getCoordinates() { | |
return coordinates; | |
} | |
public void setCoordinates(String coordinates) { | |
this.coordinates = coordinates; | |
} | |
public String getPower() { | |
return power; | |
} | |
public void setPower(String power) { | |
this.power = power; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment