Kotlinlearncs.online LogoJava
Return to List

Homework: Use Array Argument

Created By: Ellen Spertus
/ Version: 2023.12.0

Create a class named Lint that has a single function, main(). that takes an array of Strings as an argument.

If the first element in the array is "--format", the program should print "I will fix your style."

Otherwise, it should print "I will complain about your style." You may assume that the passed array has at least one element.

Related Lessons

Stuck? You may find these lessons helpful: