Expand|Select|Wrap|Line Numbers

- Polynomial.java:79: cannot find symbol
- symbol : variable degree
- location: class java.lang.Object
- if (this.degree == ob1.degree)
- ^
- Polynomial.java:81: cannot find symbol
- symbol : variable degree
- location: class java.lang.Object
- else if (this.degree > ob1.degree)

Expand|Select|Wrap|Line Numbers

- public int compareTo(Object ob1)
- {
- if (this.degree == ob1.degree)
- return 0;
- else if (this.degree > ob1.degree)
- return 1;
- else
- return -1;
- }