07/10/24 21:53:29
>>369
public class Heihoukon {
private double x;
Heihoukon(double x) {
this.x = x;
}
public double squareRoot() {
return Math.sqrt(x);
}
}
class Kadai {
public static void main(String args[]) {
Heihoukon h = new Heihoukon(10.);
System.out.println(h.squareRoot());
}
}