parsePolynomial -- this method takes one parameter (a String) and returns a new Polynomial. The parameter is a String that represents a polynomial of the form similar to 2x^2+5.You must return a new instance of a Polynomial that correctly represents the string.
You will have to use some of the methods in the Java String class, so you should probably review the online documentation for the Java String class. For example, you might want to look at the replaceAll(), lastIndexOf(), charAt() and substring() methods (among others).