When I run my loop, it is supposed to format “res.position” ,and it does for every iteration of the loop except for the first one.
for(int i = 0; i < res.numJobs; i++) {
document.add(new Paragraph(res.position[i]).setFont(montserrat1).setFontSize(10));
document.add(new Paragraph(res.employer[i] + “, ” + res.startDate[i] + ” – ” +res.endDate[i]))
.setFont(montserrat1).setFontSize(10);
document.add(new Paragraph( “• ” + res.workDescription[i])).setFont(montserrat1).setFontSize(8).setFontColor(Color.GRAY);
}
Tried making it print in format, it did not print in format.
Om Bakhshi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.