Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making test program with oop

 
Dustin Schreader
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any reason why I'm getting the cannot find symbol Error?

 
Rob Spoor
Sheriff
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic