Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Dot(String color,int theX,int theY, int theRadius) {
- if(!(Arrays.asList(LEGAL_COLOR_NAMES).contains(color))){
- String err = "Not a valid color";
- IllegalArgumentException x = new IllegalArgumentException(err);
- throw x;
- }
- this.color_name = color;
- this.x = theX;
- this.y = theY;
- this.radius = theRadius;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement