Is there an easy way to rearrange imports in all *.java files in a project?
so for example:
import java.util.Calendar;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
would become
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
we have about 200 source files and they need to have imports in a order.
What would be the best way to approach this? I am open to a perl/python/groovy script that would do this...