Java grammar practices