I have to make a method that allows you to enter a string as a parameter, and then it removes all unnecessary output.
I have no idea where to go on this I am not allowed to use the trim method that is built in.
String str = " I like pie "
String after method call
"I like pie"