Perhaps it would be a good idea to explain in what way the program behaviour is not what you expect or intend. Rewrite your example as the main() method of some class we can all run. And describe...