java program hangs when executed

Printable View