Java Programming/Whitespace

From Wikibooks, open books for an open world
< Java Programming
Jump to: navigation, search


Java Programming Index
Introduction   Getting Started   Fundamentals   Classes and Objects  
Collections   Exceptions   Concurrent Programming   Reflection
Applets   JavaBeans Libraries

Whitespace in Java is defined as a newline, a tab, or a space. Unless inside a string literal, all whitespace is equal. While it is extremely wise to format your code nicely, it will be a pain for you and others to maintain it.

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export