All pastes #479606 Raw Edit

Stuff

public java v1 · immutable
·published 2007-05-09 20:32 UTC
rendered paste body
class crazyCounter {	public static void main (String... args) {		int n = 0;		while (n <= 1000) {			if ((n & (1 << 5)) == (1 << 5)) {				System.out.println(n + " hat das 5. Bit getrunken");			}			if (n % 5 == 0) {				System.out.println(n + " ist durch 5 teilbar");			}			for (int i = 0; i < 32; i += 4) {				if ((n & (0xF << i)) == (0xA << i)) {					System.out.println(n + " ist " + Integer.toHexString(n) + ". Hah, ein A!!");				}			}			n++;		}	}}