Online Course Discussion Forum

APCSA exam 2014 FRQ #1 unexpected error

 
 
WangDr. Kevin的头像
Re: APCSA exam 2014 FRQ #1 unexpected error
WangDr. Kevin - 2022年07月26日 Tuesday 01:23
 

It means an array of Strings cannot be printed like that.  What is being printed is the reference value of the array.  If you want to output the actual Strings, use a loop to print each element.