a simple Java-FX Application which Simulate the Approximation of Pi https://nextn.xyz
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

25 行
362 B

  1. package montecarlopi;
  2. public class Point {
  3. private double x,y;
  4. public Point(double x, double y) {
  5. this.x = x;
  6. this.y = y;
  7. }
  8. public double getX() {
  9. return x;
  10. }
  11. public double getY() {
  12. return y;
  13. }
  14. @Override
  15. public String toString() {
  16. return "("+x+"\\"+y+")";
  17. }
  18. }