Really new to Java, need some help with some homework

So the question is: "Given two linear equations: ax + by + c = 0 and dx + ey + f = 0. Solve for x and y". A, b, c, d, e, and f being given from the user. I know how to get the input from the user, but from there I am stumped. (Currently using DrJava)

Re: Really new to Java, need some help with some homework

Break the problem down. Do you have an algorithm? If not - how would you do this by hand? Write it out on paper...that's your algorithm. If you do have an algorithm, where exactly are you stuck when translating that to code?