wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Cant use object from another class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Cant use object from another class" Watch "Cant use object from another class" New topic
Author

Cant use object from another class

Sid James
Greenhorn

Joined: Sep 16, 2009
Posts: 7
I
Gamini Sirisena
Ranch Hand

Joined: Aug 05, 2008
Posts: 357
In your Dice class there is no method with the signature rollDice(int).

What it has is rollDice().

Also please use code tags posting code.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18917
    
  40

Sid,

It is really not nice to delete the question after you got an answer. Please don't do that !!

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Sid James
Greenhorn

Joined: Sep 16, 2009
Posts: 7
oops. sorry, new here.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

(Just out of curiosity, why would you think deleting the question would be standard behavior?)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cant use object from another class