This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on classes

 
Sally Curtis
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i send an object to a constructor and then from that constructor send it to a different constructor in the same class?
heres the code

Also, when i parse my string in the if statements, the compilier can't recognise it. is it because of the if statements and can i fix it somehow?
 
chi Lin
Ranch Hand
Posts: 348
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
some observations here,
1. when parse quadLine, you could use "+-" as delimiters.
2. put token-getting code inside a while loop as user may not always
enter a fully quadratic function eg, 2x^2 - 8,
ie : you don't always have 3 tokens to fetch.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic