but I got the error message saying that it cannot find symbol
symbol: variable Arrays
That simply indicates that the compiler couldn't find the 'Arrays' symbol, i.e. it
couldn't check whether or not there even *was* a method named toString(). That
should've fired up your attention: when a class symbol can't be found you either
misspelt its name or you have forgotten to import it.
Comment