problems solved in java , "just 4 have fun"