If I have a String that contains a command and I want the program to read it and preform what it says.
example:
If I have a function:
private void move(float position, float speed){
.....
}
and a String
String command = "MOVE 305 5"
where the "MOVE" calls the move() function and “305“ is the position and the “5“ is the speed.
So, it should be like this:
move(305, 5);
How can I call the function using this String?
COMMAND arg1 arg2 argNthen why not useString#Split?