Java Reflection - Attributes

  • + 0 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));