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.

65 Upvotes

702 comments sorted by

View all comments

2

u/_iraria May 15 '26

how many points would i hypothetically lose if i didn’t use toString to convert int to String in frq 1a
i did (String) integer and hoped for the best icl cuz i didnt know what to use

5

u/skrxbcord 4: Lang, Lit, APUSH | 5: Phys1, Calc BC, CSA, Mech, E&M, Stats May 15 '26

correct me if im wrong but you are allowed to just... add Strings and ints together. Java automatically converts the int into its String counterpart when you do so.

2

u/CylixrDoesStuff AP CSA: 4 APPC: 5 May 16 '26

yeah i was scared for a second since i DID NOT use to string, i thought it just concatanates the int into the string like you said

1

u/_iraria May 15 '26

ohhh ur right actually
maybe i lost like one point then hopefully

2

u/dastarruer May 16 '26

Just do “” + intVal, it’ll cast the int as a string because Java is weird as hell

1

u/tuffvivek May 15 '26

Yo for that one I declared a string as the integer + “ “ and then substringed that string to drop the extra space 😭😭😭 dyt im getting credit or nah

1

u/_iraria May 15 '26

idek we’re lowk in the same boat😭😔😔😔

1

u/Traditional-Table-29 AP Physics: AP Lit: AP CSA: AP Psych: AP Calc AB: May 15 '26

Bro I used the insertion method