we need output along with java code and it should be run with out errors .And I need screenshots of output .