JAVA開発メモ
の変更点
 

[リロード]   [新規|編集|差分|添付]   [トップ|一覧|単語検索|最終更新|バックアップ|ヘルプ]

サイトメニュー

  • 追加された行はこの色です。
  • 削除された行はこの色です。
  • へ行く。

   String[] array = { "A", "C", "B" };
  
   Class cls = Class.forName("java.util.Arrays");
   Method method =
       cls.getDeclaredMethod("sort", new Class[] { Object[].class });
   method.invoke(null, new Object[] { array });
  
   System.out.println(array[0] + array[1] + array[2]);
  
   Class cls = Class.forName("java.lang.Integer");
   Method method1 =
       cls.getDeclaredMethod("toString", new Class[] { int.class });
   Method method2 =
       cls.getDeclaredMethod("toString", new Class[] { int.class, int.class });
   String string1 =
       (String) method1.invoke(null, new Object[] { new Integer(255) });
   String string2 =
       (String) method2.invoke(null, new Object[] { new Integer(255), new Integer(16) });

リロード   新規 編集 差分   トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS
Last-modified: Wed, 10 Aug 2005 07:40:51 UTC (6806d)
Link: (5667d)

Modified by MT22(Moriwaki Takashi)

"PukiWiki" 1.3.7 Copyright © 2001,2002,2003 PukiWiki Developers Team. License is GNU/GPL.
Based on "PukiWiki" 1.3 by sng
Powered by PHP 7.4.33

HTML convert time to 0.029 sec.