I was wondering if it's possible to make up a command, let's say we have a Scanner.
Here's example:
Scanner INPUT = new Scanner(System.in);
int IsPoints = 0;
String isValue = INPUT.nextLine();
if (isValue.equalsIgnoreCase("give"){
isPoints += The int value you want here;
}
So my real question is, is it possible to increase the int value of points, via a String command?
The output, if it worked, would be give X (Amount of points you want = x)
So if I did give 5000 I'd get 5000 points, is that possible to do?
Thanks