ЧТО ТАКОЕ?????????
package com.javarush.games.moonlander;
public class ShapeMatrix {
public static final int[][] ROCKET = new int[][]{
{0, 0, 0, 0, 5, 0, 0, 0, 0},
{0, 0, 0, 12, 12, 12, 0, 0},
{0, 0, 0, 5, 0, 5, 0, 0, 0},
{0, 0, 0,12, 12 , 12, 0, 0},
{0 Подскажите пожалуйста.Почему такой код у меня не работал? public class Solution {
public static int[] array = {9, 8, 7, 6, 5, 4, 3, 2, 1};
public static int element = 5;
public static void main(String[] args) {
int[] array2=Arrays.copyOfRange(array, 0, array.length);
Arrays.sort(array2);
int index=Arrays.binarySearch (array