for(Float number : numberList)
System.out.println(number); // need an indentationhere
Collections.sort(numberList, new FloatComparator());
System.out.println("------- after sorting takes place -----");
for(Float number : numberList) // need indentation for the
//two following lines
System.out.println(number);
Now choose the lines you want to the indentation (or the whole text) and either do CTRL + I or Source > Correct Indentation. Here's the result:
for(Float number : numberList)
System.out.println(number);
Collections.sort(numberList, new FloatComparator());
System.out.println("------- after sorting takes place -----");
for(Float number : numberList)
System.out.println(number);
No comments:
Post a Comment