#AP CS Question

1 messages · Page 1 of 1 (latest)

unkempt sequoia
#

what is the answer (don’t mind my writing )

unkempt sequoia
#

my thought was that since the arraylist is declared without a type, you have to cast at some point before accessing the length

unkempt sequoia
gray sigil
#

D is right

unkempt sequoia
#

my teacher said it was B

gray sigil
#

wat

unkempt sequoia
#

which i tried to tell her it was d but she wasnt having it lol

oblique forge
#

Yeah d is right

#

Also wtf ArrayList with no generic type lol

spark flint
#

D is correct

#

Just write some code to show her lol

#

It wasn't declared as an ArrayList<String>

unkempt sequoia
#

i mean it’s fine if the question is targeting people who really know how generic types work