@@ -0,0 +1,879 @@
+package com.njust.test.kemu2;%0A%0Aimport java.lang.reflect.Field;%0A%0Aclass RTest%0A%7B%0A    public String field1;%0A    %0A    String field2;%0A    %0A    private String field3;%0A%7D%0A%0A/**%0A * test1%0A * test2%0A * Exception in thread %22main%22 java.lang.IllegalAccessException%0A */%0Apublic class ReflectionTest2%0A%7B%0A    public static void main(String%5B%5D args)%0A        throws Exception%0A    %7B%0A        RTest rTest = new RTest();%0A        %0A        Field field = RTest.class.getField(%22field1%22);%0A        field.set(rTest, %22test1%22);%0A        System.out.println(field.get(rTest));%0A        %0A        field = RTest.class.getDeclaredField(%22field2%22);%0A        field.set(rTest, %22test2%22);%0A        System.out.println(field.get(rTest));%0A        %0A        field = RTest.class.getDeclaredField(%22field3%22);%0A        //java.lang.IllegalAccessException%0A        field.set(rTest, %22test3%22);%0A        System.out.println(field.get(rTest));%0A    %7D%0A%7D%0A

Create ReflectionTest2.java