Need help in writing some java code

Closed