Java non-solution