Search:

Type: Posts; User: JavaA123Chris

Search: Search took 0.34 seconds.

  1. Replies
    3
    Views
    268

    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
    268

    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("+");...
  3. Replies
    1
    Views
    243

    How do I make a break in this?

    if (number1 + 8 == number2 || number1 - 8 == number2){
    if (name1.equals(name2)){
    if (cod1 == cod2){
    if (some1.equals(some2)){
    System.out.println("They're in the same group");
    }...
  4. Re: Writing a program for system of linear equations.

    I cannot thank you enough. I apologize for the problem being an algebraic error the whole time. Thanks!
  5. Re: Writing a program for system of linear equations.

    Sorry about that, but I had asked a friend for help on that equation.
    I originally had
    double x = a * ( c - ( b * ( ( f - d ) / e ) ) );
    double y = e * ( f - ( d * ( ( e - b ) /...
  6. Writing a program for system of linear equations.

    So i was assigned to write a program that would print the answer to the system of two linear equation.
    the form of ax+by=c and dx+ey=f
    I wrote this program, but it is incorrect since I tried it...
Results 1 to 6 of 6