OCAJP 8 (94%) OCPJP 8 (93%) My Certification Notes
Mushfiq Mammadov wrote:The line 6 // sb = -ani-mals should be // sb = -ani-mals-
SCJA, SCJP (1.4 | 5.0 | 6), SCJD OCAJP 7
Roel De Nijs wrote: And would the output be the same if you swapped lines 4 and 6?
Mushfiq Mammadov wrote:If we add and remove characters, their indexes change. So the output would not be the same.
Mushfiq Mammadov wrote:If we swapped lines 4 and 6 the output will be: line 4 --> anim-alsline 5 --> -anim-alsline 6 --> -anim-a-ls
Mushfiq Mammadov wrote:If we swapped lines 4 and 6 the output will be:
[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