Java & Netbeans: Display Result with Deferent Condition using IF Function

The code is use to display a result with condition using F function in Java using Netbeans IDE.

if (jTextField1.getText() >  60){
    JOptionPane.showMessageDialog(this, "Value is limited to 60!");
}else{
    JOptionPane.showMessageDialog(this, "Value is Allowed!");	
}

 

Leave a Reply

1 Comment on "Java & Netbeans: Display Result with Deferent Condition using IF Function"

Notify of
avatar
wpDiscuz