fa25-cs300 cs300
Java style guide Java style guide
Content locked
The catalog is public. Reading this content requires approved access.
Sign in to readJava style guide
Introduction
Good programming style ensures that source code is easily read and understood by people.
Getting Started
Source Files
File Name
File Encoding: UTF-8
File Organization
Formatting
Whitespace Characters
Block Indentation: +2 Spaces
One Statement per Line
Column Limit: 100
Indent Continuations: +4 Spaces
Vertical Whitespace
Horizontal Whitespace
Naming
Commenting
Miscellaneous