title: Integer canno be derefrenced
body: <p>I have some problem with my simple code in Java. I want to do aircraft flight search program, but when I leave the variable under the parameter, I get an error:</p>
  
  <pre><code>Airlines.java:14: error: int cannot be dereferenced
      String Parameters = flightNumber_go.getParameters();
  </code></pre>
  
  <p>Anyone have any idea how I could solve this problem?</p>
  
  <p>PS. Sorry for my bad English</p>
  
  <pre><code>import java.util.Scanner;
  
  class Airlines{
      public static void main(String args[]) throws Exception{
          Flight 524 = new Flight("Moskwa", "Londyn", 140);
          Flight 135 = new Flight("Warszawa", "Wroclaw", 60);
          Flight 141 = new Flight("Frankfurt", "Rzym", 95);
  
          Scanner flightNumber = new Scanner(System.in);
          System.out.println("Enter code of your flight: ");
          int flightNumber_go = Integer.valueOf(flightNumber.nextLine());
  
          String Parameters = flightNumber_go.getParameters();
          System.out.println(Parameters);
  
      }
  }
  
  class Flight{
      String departures;
      String arrival;
      int price;
  
      public Flight(String departures, String arrival, int price){
          this.departures = departures;
          this.arrival = arrival;
          this.price = price;
      }
      public String getParameters(String ... args){
          return "Lot z "+this.departures+" do "+this.arrival+" kosztuje "+this.price;
      }
  }
  </code></pre>