Ruby solutions to Java programming challenges