renamed all modules

This commit is contained in:
Andy Clement
2014-01-15 11:36:24 -08:00
parent 342420b2ed
commit ceef61cf98
1055 changed files with 301 additions and 259 deletions

View File

@@ -0,0 +1,27 @@
package reflect;
import java.lang.reflect.Field;
public class FieldWriting2 {
public static int i = 4;
public int j = 5;
Field fi = null;
Field fj = null;
public void seti(int newi) throws Exception {
if (fi == null) {
fi = FieldWriting2.class.getDeclaredField("i");
}
fi.setInt(this, newi);
}
public void setj(int newj) throws Exception {
if (fj == null) {
fj = FieldWriting2.class.getDeclaredField("j");
}
fj.setInt(this, newj);
}
}