in java

more informatory running java code of the problem