FileDocCategorySizeDatePackage
AutoInc.javaAPI DocExample2794Mon Apr 06 18:10:26 BST 1998None

AutoInc

public class AutoInc extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    int i = 1;
    prt("i : " + i);
    prt("++i : " + ++i); // Pre-increment
    prt("i++ : " + i++); // Post-increment
    prt("i : " + i);
    prt("--i : " + --i); // Pre-decrement
    prt("i-- : " + i--); // Post-decrement
    prt("i : " + i);
  
static voidprt(java.lang.String s)

    System.out.println(s);