Java compare array to variable : Brand new to Java, I am in the process of writing a program that has an array initialized, as well as a variable that is holding a single integer. What I am trying to do is have my program check the array and then check the variable and if the variable integer is within my array sopln my array and print it without the number that is in the variable. Here is a rough little example of what I currently have written up. Therefore I want the array to be printed without the 17. Stuck on what to do after what I have written. 

    public class Harrison7b
    {
       public static void main(String [] args)
       {
          int[]arrayA = {2,4,8,19,32,17,17,18,25,17};
         
         
          for(int B = 17; B < arrayA.length - 1; B++)
          {
    
    
          }
       }
    }