How do I add the subsections with the sections.

Here is what the outcome should look like.

You are viewing a single comment. View All

Here's what I came up with, line 10 didn't have the chapter or the section provided as parameters so System.out.printf gave an error due to formatting. I also changed the class and file name to Main so it would compile.


@Kai_Justice Wow thank you so much.