// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class Overflow {
   public static void main(String[] args) {
      int i1 = Integer.MAX_VALUE;
      int i2 = i1 + 1;
      System.out.println(i1 + " " + i2);
      double x1 = Double.MAX_VALUE;
      double x2 = x1 * 2;
      System.out.println(x1 + " " + x2);
   }
}
