@@ -0,0 +1,717 @@
+import java.lang.reflect.Field;%0Aimport java.lang.reflect.Method;%0Aimport java.util.Scanner;%0A%0Aclass Person %7B%0A    String name;%0A%0A    public static String sayHello(String s) %7B%0A        return s + %22 says %5C%22Hello%5C%22!%22;%0A    %7D%0A%7D%0A%0Apublic class MethodSaysHello %7B%0A    public static void main(String%5B%5Dargs) throws ClassNotFoundException %7B%0A        Scanner scanner = new Scanner(System.in);%0A        String name = scanner.nextLine();%0A        System.out.println(Person.sayHello(name));%0A%0A        Field%5B%5D fields = Person.class.getDeclaredFields();%0A        Method%5B%5D methods = Class.forName(%22Person%22).getDeclaredMethods();%0A        if (fields.length != 1 %7C%7C methods.length != 1) %7B%0A            throw new ClassFormatError();%0A        %7D%0A    %7D%0A%7D%0A

Create 01.MethodSaysHello.java