Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String print(char poly){
- String s1=new String(),output=new String();
- sLinkedList target;
- if(poly=='R'){target=R;}
- else{target=identify(poly);}
- if(target==null){throw new IllegalArgumentException("polonominal is empty ");}
- else{int[]temp;
- for(int i=0;i<target.size();i++){
- temp=(int[])target.get(i);
- s1=" "+temp[0]+" X^"+temp[1];
- output=output+s1;
- }
- }
- return output;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement