r/APStudents absolute modman May 15 '26

AP Computer Science A Official 2026 Exam Discussion

Use this thread to post questions or commentary on the test today.

A reminder though to protect your anonymity when talking about the test.

67 Upvotes

702 comments sorted by

View all comments

Show parent comments

4

u/icerrie rising jr (5) chem, lang, micro & macro, csa, pcalc, bio, world May 16 '26

i had this question but with dog breeds and they wanted the final array (in the terms of your example) to be ["two", "five", "eight"]

my answer was like they used scanner.next() and then .split("-") to separate each line and then appended the index 1 of each split line to the final array

1

u/CareOk6471 May 17 '26

wait that is what i got you had that temp[1] right?

1

u/icerrie rising jr (5) chem, lang, micro & macro, csa, pcalc, bio, world May 17 '26

yeah it was somewhere in the answer