J2ME Polynomial calculator