To check your program in Eclipse/Java on spacing and tabs. It is recommended to occasionally use the short keys:

Windows Mac
To invoke the Auto Formatter   Ctrl+Shift+f Cmd+Shift+f
To indent your code   Ctrl+i Cmd+i