This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
import java.util.*; class Flubber { public static void main(String[] args) List<String> x = new ArrayList<String>(); x.add("x"); x.add("xx"); x.add("Xx");
// insert code here for(String s: x) System.out.println(s);
And output : xx Xx x
which code inserted at // insert code here . will produce the preeceding output ? (choose all that apply)
A . Collection.sort(x);
B . Comparable c = Collection.reverse(); Collections.sort(x,c); C . Comparator c = Collection.reverse(); Collections.sort(x,c); D . Comparable c = Collection.reverseOrder(); Collections.sort(x,c); E. Comparator c = Collection.reverseOrder(); Collections.sort(x,c);