Simple Java Solutions