News

That code will create an s1 string object and a reference variable. As noted, Java strings are immutable ... x.append("eats vegetables"); System.out.println(x); } } Reverse a string using the reverse( ...