Java: Bitwise Example
Java: A sentence case toggling code.
Java:

/*
 * 1
 * 2 3
 * 4 5 6
 * 7 8 9 10
 * ...........
 */
Java:

/*
 * 2 4 6 8 10 12 14 16 18 20
 * 3 6 9 12 15 18 21 24 27 30
 * 4 8 12 16 ..............
 * ...............
 * ...........
 */
Java:

/*
 * A B C D E
 * B C D E A
 * C D E A B
 * D E A B C
 * E A B C D
 *
 */
Java:

/**
 * * @ * @ * @
 * @ * @ * @ *
 * * @ * @ * @
 * @ * @ * @ *
 * * @ * @ * @
 * @ * @ * @ *
 */