呼び出すメソッドに arraylist 型の引数を渡したいと思います。
いくつかの構文エラーが発生しているので、これは何が問題なのか疑問に思っていました。
シナリオ 1:
// i have a class called AW
class AW{}
// i would like to pass it an ArrayList of AW to a method I am invoking
// But i can AW is not a variable
Method onLoaded = SomeClass.class.getMethod("someMethod", ArrayList<AW>.class );
Method onLoaded = SomeClass.class.getMethod("someMethod", new Class[]{ArrayList<AnswerWrapper>.class} );
シナリオ 2 (同じではありませんが、似ています):
// I am passing it as a variable to GSON, same syntax error
ArrayList<AW> answers = gson.fromJson(json.toString(), ArrayList<AW>.class);