1 package test4; 2 3 public class CodeConv2 { 4 int field = 3; 5 static int sf = 1; 6 run()7 public int run() { 8 field = 7; 9 sf = 8; 10 switch (field) { 11 case 0: 12 field = 1; 13 break; 14 default: 15 } 16 int r = field * 10000 + sf; 17 switch (field) { 18 case 0: 19 field = 1; 20 break; 21 default: 22 } 23 return r; 24 } 25 write(Object target, int value)26 public static void write(Object target, int value) { 27 if (target == null) 28 sf = value * 2; 29 else 30 ((CodeConv2)target).field = value * 2; 31 } 32 read(Object target)33 public static int read(Object target) { 34 if (target == null) 35 return sf * 100; 36 else 37 return ((CodeConv2)target).field * 100; 38 } 39 } 40