@@ -0,0 +1,1365 @@
+package java_problems.advanced;%0D%0A%0D%0Aimport java.util.*;%0D%0Aimport java.lang.reflect.*;%0D%0A%0D%0A/*%0D%0A * Problem Statement%0D%0A * %0D%0A * JAVA reflection is a very powerful tool to inspect the attributes of a class%0D%0A * in runtime. For example, we can retrieve the list of public fields of a class%0D%0A * using getDeclaredMethods().%0D%0A * %0D%0A * In this problem, you will be given a class Solution in the editor. You have%0D%0A * to fill in the incompleted lines so that it prints all the methods of another%0D%0A * class called Student in alphabetical order. We will append your code with the%0D%0A * Student class before running it.%0D%0A * %0D%0A * You have to print all the methods of the student class in alphabetical order.%0D%0A * There is no sample input/output for this problem. If you press %22Run Code%22,%0D%0A * it will compile it, but it won't show any outputs.%0D%0A */%0D%0Apublic class JavaReflection %7B%0D%0A%0D%0A    public static void main(String%5B%5D args) throws ClassNotFoundException %7B%0D%0A        %0D%0A        Class%3C?%3E student = Class.forName(%22Student%22);%0D%0A        Method%5B%5D methods = student.getDeclaredMethods();%0D%0A%0D%0A        ArrayList%3CString%3E methodList = new ArrayList%3C%3E();%0D%0A        for(int i = 0; i %3C methods.length; i++)%7B%0D%0A            methodList.add(methods%5Bi%5D.getName());%0D%0A        %7D%0D%0A        Collections.sort(methodList);%0D%0A        for(String name: methodList)%7B%0D%0A            System.out.println(name);%0D%0A        %7D%0D%0A    %7D%0D%0A%7D

Add JavaReflection