Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 4 additions & 26 deletions friends/Graph_Methods.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
import java.util.StringTokenizer;

/**
* This class implements a term of a polynomial.
*
*stew can you see and edit this?
* no i cant idiot
*
* @author runb-cs112
*
*/
Expand Down Expand Up @@ -108,30 +109,7 @@ public Graph_Methods() {
poly = null;
}

/**
* Reads a polynomial from an input stream (file or keyboard). The storage format
* of the polynomial is:
* <pre>
* <name> <school>
* <name> <school>
* ...
* <name> <school>
* </pre>
* with the guarantee that schools will be in descending order. For example:
* <pre>
* 4 5
* -2 3
* 2 1
* 3 0
* </pre>
* which represents the polynomial:
* <pre>
* 4*x^5 - 2*x^3 + 2*x + 3
* </pre>
*
* @param br BufferedReader from which a polynomial is to be read
* @throws IOException If there is any input error in reading the polynomial
*/

public Polynomial(BufferedReader br) throws IOException {
String line;
StringTokenizer tokenizer;
Expand Down