Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem w/ program  RSS feed

 
mjrox88
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im having a problem with my SlotMachine program. I have 2 seperate classes saved, a class "Wheel" and a class "SlotMachine". Look at the SlotMachine code:
public class SlotMachine
{
private Wheel w1,w2,w3;
/** Default constructor creates 3 wheels*/
public SlotMachine()
{
w1 = new Wheel();
w2 = new Wheel();
w3 = new Wheel();
}

this is just the beginning of the code, but i get an error that says that it can't resolve symbol for class Wheel, but I compiled the wheel program just fine and this should work. This program works at my school but not at home.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

This "Performance" forum is for talking about performance problems -- i.e., slow programs. I suppose "not even starting" is an extreme form of "slow", but still, this is off-topic here. I'm moving it to Java in General(Beginner) for discussion.
[ November 18, 2004: Message edited by: Ernest Friedman-Hill ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!