Index: lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/controller/TblMonitorController.java =================================================================== diff -u -rbac8a1d9f2b37ca6e26f275886b9e6603a6c0fb7 -rc1d7d8347ccf1a0b99e55d8152c4e79381866644 --- lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/controller/TblMonitorController.java (.../TblMonitorController.java) (revision bac8a1d9f2b37ca6e26f275886b9e6603a6c0fb7) +++ lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/controller/TblMonitorController.java (.../TblMonitorController.java) (revision c1d7d8347ccf1a0b99e55d8152c4e79381866644) @@ -122,7 +122,7 @@ long toolContentId = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); Scratchie scratchie = scratchieService.getScratchieByContentId(toolContentId); - Set items = new TreeSet(new ScratchieItemComparator()); + Set items = new TreeSet<>(new ScratchieItemComparator()); items.addAll(scratchie.getScratchieItems()); request.setAttribute("items", items); @@ -171,7 +171,9 @@ int total = (Integer) groupRow.getCell(itemDtos.size() + 1); groupSummary.setMark(total); - String totalPercentage = groupRow.getCell(itemDtos.size() + 2).toString(); + // round the percentage cell + String totalPercentage = String + .valueOf(Math.round(Double.valueOf(groupRow.getCell(itemDtos.size() + 2).toString()))); groupSummary.setTotalPercentage(totalPercentage); }