int roundedValue;  roundedValue = value>0? (int)(value+0.5) : -(int)(Math.abs(value)+0.5);
int roundedValue = value > 0 ? (int)(value + 0.5) : -(int)(Math.abs(value) + 0.5);
  public static int round(double value){    int roundedValue;        roundedValue = value>0? (int)(value+0.5) : -(int)(Math.abs(value)+0.5);        return roundedValue;  }