MonInteger.java

public class MonInteger  {
  private int val;
  public MonInteger(int v) { val = v; }
  public int intValue() { return val; }
  protected void finalize() throws Throwable {
    System.out.println("Entier " + val + " finalisť");
  }
}