0

How to call different methods in switch case

4th Oct 2018, 2:16 PM
Basit Mir
Basit Mir - avatar
4 Respuestas
+ 1
switch(var){ case 0: callFirstMethod(); break; case 1: callSecondMethod(); break; ... }
4th Oct 2018, 2:18 PM
Sam Pache
Sam Pache - avatar
0
I want to call different methods in main method using switch case
4th Oct 2018, 2:52 PM
Basit Mir
Basit Mir - avatar
0
That's what I've done. Share your code here if you want it to be more precise :)
4th Oct 2018, 2:55 PM
Sam Pache
Sam Pache - avatar
0
I have to create calculator using this
4th Oct 2018, 2:57 PM
Basit Mir
Basit Mir - avatar