This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Why doesnt this work? constructor undefined Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why doesnt this work? constructor undefined" Watch "Why doesnt this work? constructor undefined" New topic
Author

Why doesnt this work? constructor undefined

jimmy dean
Greenhorn

Joined: Oct 14, 2010
Posts: 3
line: 5]
Error: The constructor Stock1(java.lang.String, java.lang.String, double, double) is undefined

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1194
What would happen if you changed the name of your Stock1 class that defined the constructors to something else, and then created that object in main in your Stock1 class?
Gary Ba
Ranch Hand

Joined: Oct 23, 2009
Posts: 150

Carol, Double posting.

Gary


star chaser..
Raphael Okochu
Greenhorn

Joined: Jul 17, 2009
Posts: 22
More like this;



SCJP 5
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Gary Ba wrote:Carol, Double posting.

Gary

Indeed.

Jimmy, please UseOneThreadPerQuestion. This thread is the same as this one. I'll close the other one, but do read Matthew's post in it.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why doesnt this work? constructor undefined
 
Similar Threads
Programing challenge
what did i break? "no main method found"
Question about packages.
question about this code
Why doesnt this work? constructor undefined