首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

自各儿写出了有意思的bug

2012-09-11 
自己写出了有意思的bugwhile (quoteItemTableJsonArray.getJSONObject(0).keys().hasNext()) {columnName

自己写出了有意思的bug

while (quoteItemTableJsonArray.getJSONObject(0).keys().hasNext()); {columnName = (String) quoteItemTableJsonArray.getJSONObject(0).keys().next();chunk = new Chunk(rowJsonObject.getString(columnName), FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL,BaseColor.BLACK));  paragraph = new Paragraph(chunk);paragraph.setAlignment(Element.ALIGN_CENTER);chunk.setTextRise(4);cell = new PdfPCell();cell.addElement(paragraph);quoteItemTable.addCell(cell);}


这段代码是由 do{}while();改过来的,陷入了死循环,你能发现原因么?

热点排行