题目描述FarmerJohnwantstomonitorhisNcows(1 Theithcowislocatedatposition(x_i,y_i)withintegercoordinates(intherange0...1,000,000,000);notwocowsoccupythesameposition.FJ'ssurveillancesystemcontainsthreespecialcameras,eachofwhichiscapableofobservingallthecowsalongeitheraverticalorhorizontalline.Pleasedeterm
键数组定义如下:keys=newchar[]{resolv,'А','Б','В','Г','Д','Е','Ё','Ж','З','И','Й','К','Л','М','Н','О','П','Р','С','Т','У','Ф','Х','Ц','Ч','Ш','Щ','Ъ','Ы','Ь','Э','Ю','Я'};'resolv'是一个常量char值0x00,但这与此问题无关。现在,此代码引发“java.lang.ArrayIndexOutOfBoundsException:length=34;index=34”异常有时:protectedvoidLoadKeyRects()