Java "compare cannot be resolved to a type" error
- by King Triumph
I'm getting a strange error when attempting to use a comparator with a binary search on an array. The error states that "compareArtist cannot be resolved to a type" and is thrown by Eclipse on this code:
Comparator<Song> compare = new Song.compareArtist();
I've done some searching and found references to a possible bug with Eclipse,…