added java code that works partially, not all numbers are found yet.