a simple Java-FX Application which Simulate the Approximation of Pi
https://nextn.xyz
Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- package montecarlopi;
- public class Point {
- private double x,y;
-
- public Point(double x, double y) {
- this.x = x;
- this.y = y;
- }
-
- public double getX() {
- return x;
- }
-
- public double getY() {
- return y;
- }
-
- @Override
- public String toString() {
- return "("+x+"\\"+y+")";
- }
-
-
- }
|