This is my current ide code but there are errors "import java.util.ArrayList;

public class BinarySearchSequence {
    
    public static ArrayList<Integer> binarySearchIndexSequence(int num, int[] numArray) {
    
        ArrayList<Integer> sequence = new ArrayList<Integer>();//do not change

        //complete your code here
        int left = 0;
        int right = numArray.length - 1;

        while (left <= right) {
            int mid = left + (right - left) / 2;
            sequence.add(mid);

            if (numArray[mid] == num) {
                break;
            } else if (numArray[mid] < num) {
                left = mid + 1;
            } else {
                right = mid - 1;
            }
        }

        return sequence;//do not change
    }
}

import java.util.ArrayList;

public class Test {
	public static void main(String[] args) {
		boolean assertEnable = false;
		assert assertEnable=true;
		
		if(!assertEnable) {
			System.out.println(“Enable assertion before the test”);
		}else {
			System.out.println(“Assertion Enabled”);
			test();
		}
	}
	
	private static void test() {
		
		int[] numArray = { 1,2,3,4,5,6,7,8,9,10 };
		
		
		try {
			ArrayList<Integer> sequence = BinarySearchSequence.binarySearchIndexSequence(1, numArray);
			int[] expected1 = {4,1,0};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected1)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(2, numArray);
			int[] expected2 = {4,1};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected2)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(3, numArray);
			int[] expected3 = {4,1,2};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected3)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(4, numArray);
			int[] expected4 = {4,1,2,3};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected4)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(5, numArray);
			int[] expected5 = {4};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected5)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(6, numArray);
			int[] expected6 = {4,7,5};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected6)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(7, numArray);
			int[] expected7 = {4,7,5,6};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected7)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(8, numArray);
			int[] expected8 = {4,7};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected8)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(9, numArray);
			int[] expected9 = {4,7,8};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected9)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(10, numArray);
			int[] expected10 = {4,7,8,9};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected10)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(-1, numArray);
			int[] expected11 = {4,1,0};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected11)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(11, numArray);
			int[] expected12 = {4,7,8,9};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected12)==true;
			
			System.out.println(“Test case passed”);
		}catch(AssertionError ex) {
			System.out.println(“Test case failed”);
		}
	}

	
	private static boolean checkIfTwoArraysHaveTheSameContent(Object[] nums1, int[] nums2) {
		
		if(nums1.length!=nums2.length) {
			return false;
		}
		
		boolean isSame = true;
		for(int i=0;i<nums1.length;i++) {
			int n1 = (Integer)nums1[i];
			int n2 = nums2[i];
			if(n1!=n2) {
				isSame = false;
				break;
			}
		}
		return isSame;
	}
}


import java.util.ArrayList;

public class Test {
	public static void main(String[] args) {
		boolean assertEnable = false;
		assert assertEnable=true;
		
		if(!assertEnable) {
			System.out.println("Enable assertion before the test");
		}else {
			System.out.println("Assertion Enabled");
			test();
		}
	}
	
	private static void test() {
		
		int[] numArray = { 1,2,3,4,5,6,7,8,9,10 };
		
		
		try {
			ArrayList<Integer> sequence = BinarySearchSequence.binarySearchIndexSequence(1, numArray);
			int[] expected1 = {4,1,0};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected1)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(2, numArray);
			int[] expected2 = {4,1};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected2)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(3, numArray);
			int[] expected3 = {4,1,2};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected3)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(4, numArray);
			int[] expected4 = {4,1,2,3};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected4)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(5, numArray);
			int[] expected5 = {4};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected5)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(6, numArray);
			int[] expected6 = {4,7,5};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected6)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(7, numArray);
			int[] expected7 = {4,7,5,6};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected7)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(8, numArray);
			int[] expected8 = {4,7};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected8)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(9, numArray);
			int[] expected9 = {4,7,8};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected9)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(10, numArray);
			int[] expected10 = {4,7,8,9};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected10)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(-1, numArray);
			int[] expected11 = {4,1,0,-1};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected11)==true;
			
			sequence = BinarySearchSequence.binarySearchIndexSequence(11, numArray);
			int[] expected12 = {4,7,8,9,-1};
			assert checkIfTwoArraysHaveTheSameContent(sequence.toArray(),expected12)==true;
			
			System.out.println("Test case passed");
		}catch(AssertionError ex) {
			System.out.println("Test case failed");
		}
	}

	
	private static boolean checkIfTwoArraysHaveTheSameContent(Object[] nums1, int[] nums2) {
		
		if(nums1.length!=nums2.length) {
			return false;
		}
		
		boolean isSame = true;
		for(int i=0;i<nums1.length;i++) {
			int n1 = (Integer)nums1[i];
			int n2 = nums2[i];
			if(n1!=n2) {
				isSame = false;
				break;
			}
		}
		return isSame;
	}
}


"

Errors: "Description	Resource	Path	Location	Type
assertion cannot be resolved to a variable	BinarySearchSequence.java	/Lab5/src	line 38	Java Problem
Enabled cannot be resolved to a variable	BinarySearchSequence.java	/Lab5/src	line 40	Java Problem
Syntax error, type annotations are illegal here	BinarySearchSequence.java	/Lab5/src	line 38	Java Problem
Syntax error, type annotations are illegal here	BinarySearchSequence.java	/Lab5/src	line 40	Java Problem
Syntax error on token "before", instanceof expected	BinarySearchSequence.java	/Lab5/src	line 38	Java Problem
Syntax error on token "Invalid Character", @ expected	BinarySearchSequence.java	/Lab5/src	line 38	Java Problem
Syntax error on token "Invalid Character", @ expected	BinarySearchSequence.java	/Lab5/src	line 40	Java Problem
Syntax error on token "Invalid Character", delete this token	BinarySearchSequence.java	/Lab5/src	line 38	Java Problem
Syntax error on token "Invalid Character", delete this token	BinarySearchSequence.java	/Lab5/src	line 40	Java Problem
Syntax error on token(s), misplaced construct(s)	BinarySearchSequence.java	/Lab5/src	line 3	Java Problem
Syntax error on tokens, delete these tokens	BinarySearchSequence.java	/Lab5/src	line 99	Java Problem
Syntax error on tokens, delete these tokens	BinarySearchSequence.java	/Lab5/src	line 101	Java Problem
the cannot be resolved to a type	BinarySearchSequence.java	/Lab5/src	line 38	Java Problem
The public type Test must be defined in its own file	BinarySearchSequence.java	/Lab5/src	line 32	Java Problem
The type Test is already defined	Test.java	/Lab5/src	line 3	Java Problem
"