Here I would like to give some basic code conventions in Java that mostly we need in our daily programming life: Indentation Use 4 spaces for indentation. No tabs! If you are using Eclipse, you can configure this at With Eclipse 3.7: Window->Preferences->Java->Code Style->Formatter Edit on one selected convention, example: Java Conventions [built-in] and go…