Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRulon Taylor
2,762 Pointsjava.util.Queue is an invalid type error
When I attempt to refactor the code by selecting "Refactor," "Type Migration," and then change Song to SongRequest, the dialog box pops up an error stating that 'java.util.Queue' is an invalid type. I cannot proceed to refactor the code until I resolve this error, and I don't understand it.
Can someone please help?
1 Answer
Tristan Smith
3,171 PointsI found it! I think.
I went back and typed out everything I saw Craig do in the previous videos, such as creating SongRequest, and added the equals/hashcode as shown. And I was able to refactor the code.
So, in short. Watch the first video and add the file and needed code. Then refactor.
Have a good day!
P.s: If anyone can enlighten us as to why this happened, I'm sure we'd all benefit from it.
Tristan Smith
3,171 PointsTristan Smith
3,171 PointsI'm getting this same error. Off to do more searching..