Hi,
I'm having problems with week 2 exercise 39.2 on course Object-Oriented Programming with Java, part I
.
There is: Create a method printSquare(int sideSize)
that prints a square using our previous method printStars.
Here is my code: http://paste.mooc.fi/db55f15d
I have a problem with test : Problem in printSquare(3). expected:<***[***]***> but was:<***[******]***>
When in code I change to printStars(3); the test says that the method printStars() have to be called 4 times. When I run program with printStart(4), and printSquare(4) it print me this:
****
****
****
****
So I think there is a bug in test, because when the method printSquare() is called third time with printStars(4) there should be 12 start, but the test will be passed only when there will be 9 start printed what is wrong I think.
Best regards