自己写出了有意思的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();改过来的,陷入了死循环,你能发现原因么?

你可能感兴趣的:(java)