Step 5

Creating the WordSpammer class


Now let’s go ahead and add a completely new class into our project.

Just like before, on the right side of IntelliJ, right click on the folder starting with “com.brainstormedu” to create a new Java class, call it “WordSpammer.”

This class is going to take a string, and print it out as many times as we tell it to. Even very very large number of times, hence the name “WordSpammer.”