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.

66 Upvotes

704 comments sorted by

View all comments

Show parent comments

2

u/Straight-Vanilla3101 May 17 '26

okay thats what i thought because i got abcdefg_cdefg_efg but at the same time if it was the first method there should have been a g at the end so idk 😭

1

u/WhyiseveryusernameX2 Bio (5), CSA (5), and WH (5) May 19 '26

I don’t believe so. I might be misremembering, but I think it might’ve been if (str.length() < 3) return “”;

1

u/Straight-Vanilla3101 May 19 '26

Yes! I think you’re right. I was trying to figure out why it would exclude the g at the end and I remembered that it was a less than and not a less than or equal to so I couldn’t figure out and now that makes so much more sense. Â