public void timeTableAndBlockOutput(){
		try {
			jxl.write.WritableWorkbook writeWorkBook = Workbook.createWorkbook(new File("outputFile.xls"));   //要寫入的路徑以及檔名
			jxl.write.WritableSheet writeSheet = writeWorkBook.createSheet("inbound_train", 0);   //建立一個工作表名字，然後0表示為第一頁

			Label label = new Label(0, 0, "Inbound Train No.");   //設一個label, 並添加column major
			writeSheet.addCell(label);   //將格子添加到表格
			label = new Label(1, 0, "Arrival Time");
			writeSheet.addCell(label);
			
			BlockValues b = new BlockValues();   //為了要輸出總共有幾種blocks
			for(int i=2, j=0 ; j<b.blockLength ; i++, j++){
				label = new Label(i, 0, b.blockValues[j]);
				writeSheet.addCell(label);   //將blocks的種類名字寫入sheet
			}
			
			for(int i=0, x=1; i<trainSet.size() ; i++, x++){   //輸入每一筆火車的資料
				label = new Label(0, x, trainSet.get(i).inBoundTrainId);
				writeSheet.addCell(label);   //寫入火車編號
				label = new Label(1, x, trainSet.get(i).arrivalTime);
				writeSheet.addCell(label);   //寫入到達時間
				for(int j=0, y=2 ; j<b.blockLength ; j++, y++){   //寫入車廂種類數量
					label = new Label(y, x, countBlocks(b.blockValues[j], trainSet.get(i)));
					writeSheet.addCell(label);
				}
				label = null;
			}
			
			writeWorkBook.write();   //最後的最後，在一次將資料寫入檔案內即可，這是一次性寫入，第二次寫入會無效
			writeWorkBook.close();   //關檔是好習慣
		} catch (IOException e) {
			e.printStackTrace();
		} catch (RowsExceededException e) {		
			e.printStackTrace();
		} catch (WriteException e) {
			e.printStackTrace();
		}   
	}