src/main/java/com/xdavide9/calculatorfx/CalculatorFXController.java
@FXML
    protected void onDelPressed(ActionEvent e) {
        id = updateId(e);
        log.info("Pressed: {}", id);

        onLabel = label.getText();
        if (status(onLabel) == -1) return;

        if (onLabel.equals("0")) return;

        builder = new StringBuilder();
        onLabel = onLabel.substring(0, onLabel.length() - 1);
        if (onLabel.equals(""))
            onLabel = "0";
        builder.append(onLabel);
        label.setText(onLabel);
    }
/**
     * Deletes a single digit in the label
     * without affecting anything in memory.
     */
Deletes a single digit in the label
without affecting anything in memory.
Deletes a single digit in the label without affecting anything in memory .
@FXML
    protected void onDelPressed(ActionEvent e) {
        id = updateId(e);
        log.info("Pressed: {}", id);
        onLabel = label.getText();
        if (status(onLabel) == -1) return;
        if (onLabel.equals("0")) return;
        builder = new StringBuilder();
        onLabel = onLabel.substring(0, onLabel.length() - 1);
        if (onLabel.equals(""))
            onLabel = "0";
        builder.append(onLabel);
        label.setText(onLabel);
    }
@ FXML protected void onDelPressed ( ActionEvent e ) { id = updateId ( e ) ; log . info ( "Pressed: {}" , id ) ; onLabel = label . getText ( ) ; if ( status ( onLabel ) == - 1 ) return ; if ( onLabel . equals ( "0" ) ) return ; builder = new StringBuilder ( ) ; onLabel = onLabel . substring ( 0 , onLabel . length ( ) - 1 ) ; if ( onLabel . equals ( "" ) ) onLabel = "0" ; builder . append ( onLabel ) ; label . setText ( onLabel ) ; }
Deletes a single digit in the label
 without affecting anything in memory.
Deletes a single digit in the label without affecting anything in memory .