JavaFX Scene Builder Tutorial 34 - Calculator JavaFX

preview_player
Показать описание
JavaFX Scene Builder Tutorial 34 Calculator JavaFX

@FXML
private TextField txt_result;
String op ="";
long number1;
long number2;
// First Method
public void Number (ActionEvent ae){
}

// Second Method
public void Operation (ActionEvent ae){

return;
}
op = operation;
}else {
return;
}
calculate(number1, number2, op);
op="";
}
}
// 3 Methode
public void calculate (long n1, long n2, String op){

switch (op){

case "/" :
if (n2 == 0){
}
}
}
Libraries Importing :
Рекомендации по теме
Комментарии
Автор

Hey, doen't it supposed to delete double? Like when you divided 50 / 8 it should should show 6, 25 . Isn't is?

Smeh_Humor
Автор

I am so happy that a deaf and dumb guy is doing successfully on YouTube! He can't even say a word in the video ! So sorry for his disability! 😔

bujzi_bhairava
Автор

An Error acquired, I do more then one operation
after each operation not removed the result number.
.
but, that like a quiz for me, I must find the solution.
Thanks a lot for this Tutorials

MekNav