View RSS Feed

My Java Tips

  1. Extract Interface

    by , 11-20-2011 at 05:43 PM (My Java Tips)
    Eclipse provides the possibility to extract interface from a class. You may call it reverse engineering since rule of thumb is to write the interface first and then write the classes implementing it. But sometimes, itís the other way around. You write a class and then you want to generate the appropriate interface for it. Lets see how to do this.


    I wrote a class that has to do with text extraction from CSV files. I named it CSVFile.

    Java Code:
    import java.util.ArrayList;
    ...