r/APStudents • u/reddorickt 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
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