
public class Something {

  private int val;

  public Something() {
  
    val = 0;
  }
  
  public void update(int x) {
  
    val = x;
  }
  
  public int item() {
  
    return val;
  }
  
  public boolean equals(Object other) {
  
    return ( ((Something) other).val == val );
  }
}

