Skip to content

Instantly share code, notes, and snippets.

@pokuwagata
Last active March 22, 2018 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pokuwagata/696c6c2ff5bba98a4111a708a63c59ab to your computer and use it in GitHub Desktop.
Save pokuwagata/696c6c2ff5bba98a4111a708a63c59ab to your computer and use it in GitHub Desktop.
public class Plotter {
class Point {
Double x;
Double y;
Point(Double x, Double y) {
this.x = x;
this.y = y;
}
Double getXCoordinate() {
return x;
}
Double getYCoordinate() {
return y;
}
}
static List<Point> points = new List<Point>();
static public void plot(Double x, Double y) {
points.add(new Point(x, y));
}
static public void render() {
System.debug(points);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment