title: Eclipse Error "Syntax error, insert ". class" to complete ArgumentList"
body: <p>I keep getting this error message: </p>
  
  <p>Error: Syntax error, insert ". class" to complete ArgumentList</p>
  
  <p>How should I fix it?
  inserting other words because stackoverflow won't let me post this otherwise</p>
  
  <pre><code>import java.util.Scanner; 
  import java.io.*; 
  
  public class javahw5_11
  {
    public static void main(String [] args)
    {
      Scanner keyboard = new Scanner(System.in); 
  
      int saleData[] = new int[5];  
  
      System.out.print("How many shares are you buying?"); 
      saleData[0] = keyboard.nextInt(); 
      System.out.print("What is the purchase price per share?"); 
      saleData[1] = keyboard.nextInt(); 
      System.out.print("How much was the sales price per share?"); 
      saleData[2] = keyboard.nextInt(); 
      System.out.print("How much is the purchase commission?"); 
      saleData[3] = keyboard.nextInt(); 
      System.out.print("How much was the sales commission?"); 
      saleData[4] = keyboard.nextInt(); 
  
      double profit = getProfit(saleData[]); 
      System.out.print("Your profit is "+profit); 
  
      keyboard.close(); 
    }
  
    public static double getProfit(int saleData[])
    {
      double profit = (((saleData[0]*saleData[2])-saleData[4])-((saleData[0]*saleData[1])+saleData[3]));
      return profit; 
    }
  
  }
  </code></pre>