How would I make it so it finds it instead? In other words, how would I initialize it? I'm sorry if this is confusing, but I don't understand this much.
Type: Posts; User: JavaA123Chris
How would I make it so it finds it instead? In other words, how would I initialize it? I'm sorry if this is confusing, but I don't understand this much.
Scanner input = new Scanner(System.in);
int x = 0;
System.out.println(" Enter a math operation: ");
String expr = input.next();
int pos = expr.indexOf("+");...