Commit 2129399f authored by Georgii Aksenov's avatar Georgii Aksenov
Browse files

Iteration03 - review fixes

(cherry picked from commit d413fef3)
parent eeb07e2e
......@@ -24,8 +24,7 @@ public class Circle {
* This is a default constructor with default parameters.
*/
public Circle() {
this.center = new Vertex2D(0, 0);
this.radius = 1;
this(new Vertex2D(0, 0), 1);
}
public Vertex2D getCenter() {
......
......@@ -40,7 +40,7 @@ public class Vertex2D {
*/
@Override
public String toString() {
return format("[%s, %s]", Double.valueOf(x).toString(), Double.valueOf(y).toString());
return format("[%s, %s]", x, y);
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment