declare variable the java way