wood burning stoves*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 1187
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: 19541
    
  16

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
Question about packages.
Why doesnt this work? constructor undefined
question about this code
what did i break? "no main method found"