Ask coding questions

← Back to all posts
How do I add the subsections with the sections.
Colex (0)

Here is what the outcome should look like.

Answered by Kai_Justice (271) [earned 5 cycles]
View Answer
Colex (0)
Kai_Justice (271)

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.

Colex (0)

@Kai_Justice Wow thank you so much.