Hi everyone,
I'm just wondering why this method below causes an infinite loop to happen. I thought it would run once and then stop. Anyone can explain this? that'll be great.
public String printer(String s){
if (s.length() >= 5){
System.out.println("I'm " + s + " And my length = " + s.length());
}
return printer(s);