GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes Making test program with oop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Making test program with oop" Watch "Making test program with oop" New topic
Author

Making test program with oop

Dustin Schreader
Ranch Hand

Joined: May 25, 2009
Posts: 102
I'm trying to make a test program for my other program, I'm just learning object oriented programing and I'm not sure how to make this test program work to test the methods for intersection, union, and difference. How can I make testprogram see UnorderedSet?

unorderedset

Dustin Schreader
Ranch Hand

Joined: May 25, 2009
Posts: 102
I'm making progress, but I can't figure out why TestProgram is unable to access whats UnorderedSet class. I figure that I have to type extends UnorderedSet in public class but then I get cannot find symbol UnorderedSet

Dustin Schreader
Ranch Hand

Joined: May 25, 2009
Posts: 102
I think there was just a problem with the pc I was using it was saying that it couldn't find symbol for extends UnorderedSet but now it does for some reason. Now I am having a problem with not finding a symbol for numOne and I don't know why.
Dustin Schreader
Ranch Hand

Joined: May 25, 2009
Posts: 102
Any reason why I'm getting the cannot find symbol Error?

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

Is class UnorderedSet in the same package (in this case, none) and on the class path?
Where did you declare numOne and numTwo?
What's T? There are no generic types here.


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: Making test program with oop