# Search:

Type: Posts; User: JavaA123Chris

1. ## Thread: Error with String range print -1.

by JavaA123Chris
Replies
3
Views
169

### 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. ## Thread: Error with String range print -1.

by JavaA123Chris
Replies
3
Views
169

### 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. ## Thread: How do I make a break in this?

by JavaA123Chris
Replies
1
Views
193

### 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. ## Thread: Writing a program for system of linear equations.

by JavaA123Chris
Replies
7
Views
1,235

### 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. ## Thread: Writing a program for system of linear equations.

by JavaA123Chris
Replies
7
Views
1,235

### 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. ## Thread: Writing a program for system of linear equations.

by JavaA123Chris
Replies
7
Views
1,235

### 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