JAVA開発メモ
のバックアップ(No.1)
 

[トップ|一覧|単語検索|最終更新|バックアップ|ヘルプ]


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

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.004 sec.