Catherine
2012-08-14 16:44:45 UTC
public static void main(String[] args) {
ArrayList
cAList.add(Color.red);
cAList.add(Color.orange);
cAList.add(Color.yellow);
cAList.add(Color.green);
cAList.add(Color.cyan);
cAList.add(Color.blue);
cAList.add(Color.magenta);
Collections.sort(cAList);
for(Color c : cAList)
System.out.println(c);
}
at the collection.sort(cAList) it has an error statement:
Multiple markers at this line
- Bound mismatch: The generic method sort(List
inferred type Color is not a valid substitute for the bounded parameter
- Line breakpoint:A1 [line: 35] - main(String[])
help plz...