Random solutions to java problems