- 371 名前:デフォルトの名無しさん mailto:sage [2007/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()); } }
|

|