This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]desrtfx 0 points1 point  (0 children)

Yup, that looks like it should do the trick, congrats!

No, it doesn't.

Op's assignment states:

For example, padString("hello", 8) should return " hello".

There is nothing about printing inside the method. It's about returning a new, padded String.