File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Question on classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Question on classes" Watch "Question on classes" New topic

Question on classes

Sally Curtis

Joined: Jan 10, 2004
Posts: 26
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

Joined: Aug 24, 2001
Posts: 348
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:
subject: Question on classes
Similar Threads
IO Performance problem
string capitalise
converting this to a prefix instead of a postfix calculator
loop in quadratic example
Quadratic perplextion