You are viewing a single comment's thread. Return to all comments →
One lined it for you, since this test was so broken.
Still needs a fixed student class though.
Arrays.stream(Student.class.getDeclaredMethods()) .map(method -> method.getName()) .sorted() .forEach(method -> System.out.println(method));
Seems like cookies are disabled on this browser, please enable them to open this website
Java Reflection - Attributes
You are viewing a single comment's thread. Return to all comments →
One lined it for you, since this test was so broken.
Still needs a fixed student class though.