public class Section {
private String title;
private String description;
public Section(String title, String description) {
setTitle(title);
setDescription(description);
}
public void setTitle(String title) {
this.title = title;
}
public String getTitle() {
return title;
}
public void setDescription(String description) {
this.description = description;
}
public String getDescription() {
return description;
}
}
List<Section> sections = new ArrayList<>();
sections.add(new Section("title1", "description1"));
sections.add(new Section("title2", "description2"));
logger.info(String.format("%-20s %-20s %-2d", arg1, arg2, arg3));