This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 19655
    
  18

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
 
Similar Threads
TreeSet - Object input and output
trying to find union/intersection of arrays containing integers
cannot find symbol
finding intersection of two arrays, remove duplicates w/out error message
Comparable<T> - must override compareTo()???