Update Average.java

Added if(answer.getText().length > 0) {code}