【Java】JasperReports - 增加變數,處理筆記(4)


原有 僅一列變數
>在此變數的塞入方法中,直接做判斷中應作成兩串暫時文字放入

Q:如何取  List<String> xxxxx   的第一個值?
A:  xxxxx.get(0);

參考:
How to get the first element of the List or Set? [duplicate]-Stackoverflow
Java List
How can I get a first element from a sorted list?


>在此報表上直接增加變數去接後端整理好的字串,並放在相對應正確位置
成功!