boolean result = false;  switch(code) { case 200: case 201: case 202: case 203: case 204: case 205: case 206: case 207: result = true; break; }  return result;
return isSuccess(getCode());
   public static boolean isSuccess(int code)   {      boolean result = false;      switch(code)      {         case 200:         case 201:         case 202:         case 203:         case 204:         case 205:         case 206:         case 207:            result = true;         break;      }      return result;   }