Java Why Is The Code Executed Correctly Only Once

Java Why Is The Code Executed Correctly Only Once