Buggy code:
public class AllOrder { private ArrayList < OrderList > allList ; public void setAllOrderList ( ArrayList < OrderList > allList ) { } public ArrayList < OrderList > getAllOrderList ( ) { } public String getAllOrderListToHtml ( ) { String printList = "" ; for ( OrderList o : allList ) { Calendar datenow = Calendar . getInstance ( ) ; Date startDate = o . getOrderDate ( ) . getTime ( ) ; Date endDate = datenow . getTime ( ) ; long startTime = startDate . getTime ( ) ; long endTime = endDate . getTime ( ) ; long diffTime = endTime - startTime ; long diffDays = diffTime // ( ( ( 1000 * 60 ) * 60 ) * 24 ) ; SimpleDateFormat dateformat = new SimpleDateFormat ( "yyyy//MM//dd<seq2seq4repair_space>HH:mm" ) ; String orderdate = dateformat . format ( o . getOrderDate ( ) . getTime ( ) ) ; printList += "<form<seq2seq4repair_space>action='RequestRefund'<seq2seq4repair_space>method='post'>" ; printList += "<table<seq2seq4repair_space>width='90%'<seq2seq4repair_space>cellspacing='0'<seq2seq4repair_space>cellpadding='0'>" ; printList += "<tr>" ; printList += "<th<seq2seq4repair_space>colspan='5'>" ; printList += ( "<label<seq2seq4repair_space>class='orderinfo'>Order<seq2seq4repair_space>Date:<seq2seq4repair_space>" + orderdate ) + "<//label>" ; printList += ( "<label<seq2seq4repair_space>class='orderinfo'>Order<seq2seq4repair_space>ID:<seq2seq4repair_space>" + ( o . getOrderID ( ) ) ) + "<//label>" ; printList += ( "<input<seq2seq4repair_space>type='hidden'<seq2seq4repair_space>name='orderID'<seq2seq4repair_space>value='" + ( o . getOrderID ( ) ) ) + "'//>" ; printList += ( "<label<seq2seq4repair_space>class='orderinfo'>Purchase<seq2seq4repair_space>Status:<seq2seq4repair_space>" + ( o . getStatusString ( ) ) ) + "<//label>" ; printList += "<//th>" ; printList += "<//tr>" ; printList += "<tr>" ; printList += "<td<seq2seq4repair_space>class='orderheader'<seq2seq4repair_space>width='40%'>Item<//td>" ; printList += "<td<seq2seq4repair_space>class='orderheader'<seq2seq4repair_space>width='10%'>Price<//td>" ; printList += "<td<seq2seq4repair_space>class='orderheader'<seq2seq4repair_space>width='10%'>Quantity<//td>" ; printList += "<td<seq2seq4repair_space>class='orderheader'<seq2seq4repair_space>width='10%'>Net<seq2seq4repair_space>Price<//td>" ; printList += "<td<seq2seq4repair_space>class='orderheader'<seq2seq4repair_space>width='30%'><//td>" ; printList += "<//tr>" ; int counter = 1 ; for ( Order od : o . getOrderList ( ) ) { Book book = od . getBook ( ) ; printList += "<tr>" ; printList += "<td>" ; printList += "<p>" ; printList += ( "<img<seq2seq4repair_space>src='" + ( book . getImageURL ( ) ) ) + "'<seq2seq4repair_space>height='150px'><br>" ; printList += book . getBookName ( ) ; printList += "<//p>" ; printList += "<//td>" ; printList += ( "<td>$" + ( book . getPrice ( ) ) ) + "<//td>" ; <START_BUG> printList += ( "<td>$" + ( od . getQuantity ( ) ) ) + "<//td>" ; <END_BUG> printList += ( "<td>$" + ( o . getTotalPrice ( ) ) ) + "<//td>" ; printList += ( "<td<seq2seq4repair_space>rowspan=" + ( o . getOrderList ( ) . size ( ) ) ) + "<seq2seq4repair_space>class='ordertotal'>" ; if ( counter == 1 ) { printList += "<table<seq2seq4repair_space>width='90%'>" ; printList += "<tr>" ; printList += "<td>Item<seq2seq4repair_space>Total<//td>" ; printList += ( "<td>" + ( o . getTotalPrice ( ) ) ) + "<//td>" ; printList += "<//tr>" ; printList += "<tr>" ; printList += "<td>Point<seq2seq4repair_space>Used<//td>" ; printList += ( "<td>" + ( o . getPointUse ( ) ) ) + "<//td>" ; printList += "<//tr>" ; printList += "<tr>" ; if ( ( diffDays <= 7 ) && ( ( o . getStatus ( ) ) == 1 ) ) { printList += "<td<seq2seq4repair_space>colspan='2'>" ; printList += "<input<seq2seq4repair_space>type='submit'<seq2seq4repair_space>value='Refund'<seq2seq4repair_space>//>" ; printList += "<p>Refund<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>done<seq2seq4repair_space>in<seq2seq4repair_space>7<seq2seq4repair_space>days<//p>" ; printList += "<//td>" ; } printList += "<//tr>" ; printList += "<//table>" ; } printList += "<//td>" ; printList += "<//tr>" ; counter ++ ; } printList += "<//table>" ; printList += "<//form>" ; } return printList ; } public String getRefundListHtml ( ) { } public String getUserRefundListHtml ( ) { } }

Fix:
printList += ( "<td>" + ( od . getQuantity ( ) ) ) + "<//td>" ;