My Text file Contains line like this

FLTR TID: 0000003756 RPC ID: 0000108159 USER: **Remedy Application Service**

FLTR TID: 0000003756 RPC ID: 0000108159 USER: **Remedy Application Service**

FLTR TID: 0000003756 RPC ID: 0000108159 USER: **ibsdr** 

FLTR TID: 0000003756 RPC ID: 0000108159 USER: **Vinay.k@in.uni.com** 

FLTR TID: 0000003756 RPC ID: 0000108159 USER: **Vinay.k@in.uni.com**

FLTR TID: 0000003756 RPC ID: 0000108159 USER: **wsdl**

FLTR TID: 0000003756 RPC ID: 0000108159 USER: **stefan.hummel@uni.com** 

I want to store highlighted words in Excel sheets in columns wise and i want to store only unique user names.. like:

**Column1**....**Column2**

**S.NO**...........**UserName**

**1**..................**Remedy Application Service**

**2**..................**ibsdr**

**3**..................**Vinay.k@in.uni.com**

**4**..................**wsdl**

**5**..................**stefan.hummel@uni.com**

This is what I have tried

```
public class User {

    static HSSFWorkbook hwb = new HSSFWorkbook();
    static HSSFSheet sheet = hwb.createSheet("new sheet");
    static HSSFRow rowhead = sheet.createRow((short) 0);
    static HSSFRow row = sheet.createRow((short) 1);
    static int count = 1;

    public static void main(String [] args) {
        try {
            rowhead.createCell((short) 0).setCellValue("SNo");
            rowhead.createCell((short) 1).setCellValue("USER NAME");
            BufferedReader br = new BufferedReader(new FileReader("filter.log"));
            String str = null;
            String user = null;
            while ((str = br.readLine()) != null) {
                if (str.contains("FLTR")) {
                    user = str.substring(48, 75); // This is to get user names
                    count++;
                    store(user, count);
                }
            }
            FileOutputStream fileOut = new FileOutputStream("D:/Excel.xls");
            hwb.write(fileOut);
            fileOut.close();
            System.out.println("Your excel file has been generated!");
        }
        catch (Exception ex) {
            System.out.println(ex);
        }
    }

    private static void store(String user, int count) {
        row.createCell((short) 0).setCellValue(count);
        row.createCell((short) 1).setCellValue(user);
    }
}

```

OUTPUT

S.NO.......UserName

17963......Remedy Application Service

in this whenever I execute this program only first value is getting stored rather all values stores.. and I want to store only **UNIQUE user names** in this Excel sheet..

please help me , thanks in advance