Search:

Type: Posts; User: JavaA123Chris

Search: Search took 0.24 seconds.

  1. Replies
    3
    Views
    1,300

    Re: Error with String range print -1.

    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.
  2. Replies
    3
    Views
    1,300

    Error with String range print -1.

    Scanner input = new Scanner(System.in);

    int x = 0;

    System.out.println(" Enter a math operation: ");
    String expr = input.next();

    int pos = expr.indexOf("+");...
Results 1 to 2 of 2