Code not working

It won't print the last two sysout lines