Main method in a math class... interesting... the Math class already exists in Java. Don't know if that's a source of errors or not.
y=ax^2+bx+c;
The syntax is entirely wrong here. to square something, you can't use "^2". I think there's a Math method to do it, but it's usually more efficient to multiply it by itself: y = ax * ax + bx + c; should work. No need for parenthesis because the order of operations holds.
System.out.print( Math.sqrt(x) );
System.out.println ('The first output is, "x")
System.out.println ('The second output is, y)
Problems abound here. First of all, you need to use double quotation marks: "" for string literals. Single quotes are for character literals. Now, if you want to print the value contained in x, you can't put it in quotes: then it will print the letter x. Rather, you must concatenate the int x to the string literal with the + operator. Try:
System.out.println( "The first output is " + x );
That code would print this: "The first output is 1
For the next line, you'll do something similar.
System.out.println( "The second output is " + y );
If that doesn't solve your issues and you still get an error, it's probably because you can't pass the Math.sqrt method an integer value. Not sure on that one. If that's causing it to throw an exception, cast it to a double.
This advice won't give you the 100% correct output to dark's instructions: you still need to somehow get the double quotes around the x value and the / around the y. I'm sure Dark or I will help you with that if you need it.
Oh hey Darkroot. Mind if I help you with this a little?