I am having output results in console need to import in to excel any advise.
for (String available : list1) {
System.out.println("Available hotels: -------"+available);
My results will print in available as like above those o/p need to export into excel.
Tried using below,not working
for(int m = 0; i < available.length(); m++) {
```
File fExcel = new File("C:/Users/GoQuo MY/Desktop/Hotel.xls");
WritableWorkbook writableBook = Workbook.createWorkbook(fExcel);
writableBook.createSheet("Data", 0);
WritableSheet writableSheet = writableBook.getSheet(0);
Thread.sleep(5000);
Label data1 = new Label(0, m, available);