there is an error in section "12.1.3 Manipulating Strings" in the example code that a string manipulation method returns the same string if it is unchanged:
Code: Select all
System.out.println(s1.strip() == s1);Best regards
ardurn
Moderator: admin
Code: Select all
System.out.println(s1.strip() == s1);Users browsing this forum: Bing [Bot], Google [Bot], Merlewaigo and 29 guests