Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. String print(char poly){
  2. String s1=new String(),output=new String();
  3. sLinkedList target;
  4. if(poly=='R'){target=R;}
  5. else{target=identify(poly);}
  6. if(target==null){throw new IllegalArgumentException("polonominal is empty ");}
  7. else{int[]temp;
  8. for(int i=0;i<target.size();i++){
  9. temp=(int[])target.get(i);
  10. s1=" "+temp[0]+" X^"+temp[1];
  11. output=output+s1;
  12. }
  13. }
  14. return output;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement