javaのエラーについて質問です。
classの中のmethods一覧を表示させるメソッドを作りたいのですが
java
1 public static void listMethod(Class<?> info1){ 2 System.out.println("メソッド一覧"); 3 Method[] methods = info1.getDeclaredMethods(); 4 for(Method m:methods){ 5 System.out.println(m.getName()); 6 } 7 }
とやったのですが
エラー: シンボルを見つけられません Method[] methods = info1.getDeclaredMethods(); ^ シンボル: クラス Method 場所: クラス Launchar エラー: シンボルを見つけられません for(Method m:methods){ ^ シンボル: クラス Method 場所: クラス Launchar
となってしまいました。原因を教えてください
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/03/19 14:37