2011-09-01から1日間の記事一覧
クラスからインスタンス化しなくても使えるメソッドがある クラス名.メソッド名でメソッドが使える Math.random() System.out.println() public class sample19{ public static void main(String[] args){ double d; d=Math.random(); System.out.println(d)…
クラスからインスタンス化しなくても使えるメソッドがある クラス名.メソッド名でメソッドが使える Math.random() System.out.println() public class sample19{ public static void main(String[] args){ double d; d=Math.random(); System.out.println(d)…