Add Java and Ruby to Problem 1