The following Java if-statement is not correct. What is wrong with it?
  if x == 0
  {
     y = 1;
  }
  else 
  {
     y = x;
  }