java etiquette improvement