Chris Kuyler wrote:Am I missing something here, or is there a typo somewhere?
replace(char oldChar, char newChar) wrote:Returns a string resulting from replacing all occurrences of oldChar in this string with newChar.
Chris Kuyler wrote:On page 110 it gives the following examples for the String replace function
Paul Clapham wrote:And the two methods work differently; have a look in the API document to read about how they actually work.
replace(char oldChar, char newChar) wrote:Returns a string resulting from replacing all occurrences of oldChar in this string with newChar.
replace(CharSequence target, CharSequence replacement) wrote:Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence. The replacement proceeds from the beginning of the string to the end, for example, replacing "aa" with "b" in the string "aaa" will result in "ba" rather than "ab".
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
[OCP 11 Complete Study Guide] [OCP 11 Programmer I Book] [OCP 11 Programmer II Book] [OCP 11 Practice Tests Book] [OCA 8 Book] [OCP 8 Book] [OCP 8 Practice Tests Book] [Blog]
Chris Kuyler wrote:I'm surprised no one noticed on the forum yet, but I guess most of those going for OCA 8 are waiting for the printed version (or even still just opting for OCA 7).
Roel De Nijs wrote:
Chris Kuyler wrote:I'm surprised no one noticed on the forum yet, but I guess most of those going for OCA 8 are waiting for the printed version (or even still just opting for OCA 7).
People who want to take on OCP certification after passing OCA don't have another option then OCA 7, because the OCP 8 beta isn't announced yet. And after the beta ends, you'll have to wait another 11 weeks before you know your score. And you can't combine different version certifications. So I think currently the OCA 7 is still the more popular one.
Jeanne Boyarsky wrote:Until the publisher starts their errata page, I'm keeping a list here. I want to congratulate you for being the first person I don't know in the real word who found/posted an error. (The other two are from Scott and one of my friends.)
Chris Kuyler wrote:I may have another small typo for your list. A stray L on page 124:
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|