Kind Par-of-Speech Identifier Examples Variable noun sum, intialSpeed, firstName Constant noun SPEED_OF_LIGHT, PI
int heightInFeet = 5; //height in feet
double heightInInches = 2.54 * heightInFeet; //convert height from feet to inche
Be aware that if an editor other than DrJava is used, using tabs may be problematic. An editor (e.g. NotePad) may replace tabs with 8 spaces. If a tab is replaced with more than 4 spaces your code may be hard to read and difficult for another developer to work with. Check your editor/IDE to see if tab behavior is a configurable option.
if (x == y) {
statements
}
OR
if (x == y)
{
statements
}