title: Java error, cannot find feild user2303583
body: <p>Hi I am trying to get my code to create the  new constructor objects which i reqiure to create mobile phone object, I have tried naming the constuctor fields to create object, however Error comes up at</p>
  
  <pre><code>public Mobile(String Mobilephonetype, String Mobilescreensize,
          String Mobilememorycardcapacity, String Mobilecameraresolution,
          String MobileGPS), at the bottom of the page
  </code></pre>
  
  <p>why am i getting this error?</p>
  
  <pre><code>java error, cannot find symbol - variable samsung
  </code></pre>
  
  <p>UPDATE i have changed some of the top fields from private int to string but now it says cannot find symbol - class string, what doers this mean??</p>
  
  <p>Code:</p>
  
  <pre><code>/**
   * to write a simple java class Mobile that models a mobile phone.
   * 
   * @author () 
   * @version (14/10/13)
   */
  public class Mobile
  
  {
      // type of phone
      private string phonetype;
      // size of screen in inches
      private int screensize;
      // menory card capacity
      private int  memorycardcapacity;
      // name of present service provider
      private string serviceprovider;
      // type of contract with service provider
      private int typeofcontract;
      // camera resolution in megapixels
      private int cameraresolution;
      // the percentage of charge left on the phone
      private int checkcharge;
      // wether the phone has GPS or not
      private string GPS;
      // instance variables - replace the example below with your own
      private int x;
  
      // The constructor method
  
      public Mobile(String mobilePhoneType, int mobileScreenSize,
              int mobileMemoryCardCapacity, String newserviceprovider, int mobileCameraResolution,
              String mobileGPS) {
          this.phonetype =  mobilePhoneType;
          this.screensize = mobileScreenSize;
          this.memorycardcapacity = mobileMemoryCardCapacity;
          this.cameraresolution = mobileCameraResolution;
          this.GPS = mobileGPS;
  
          // you do not use this ones during instantiation,you can remove them if you do not need or assign them some  default values 
          this.serviceprovider = newserviceprovider;
          this.typeofcontract = 12;
          this.checkcharge = checkcharge;
  
      }
  
      // A method to display the state of the object to the screen
      public void displayMobileDetails() {
          System.out.println("phonetype: " + phonetype);
          System.out.println("screensize: " + screensize);
          System.out.println("memorycardcapacity: " + memorycardcapacity);
          System.out.println("cameraresolution: " + cameraresolution);
          System.out.println("GPS: " + GPS);
           System.out.println("serviceprovider: " + serviceprovider);
          System.out.println("typeofcontract: " + typeofcontract);
  
      }
  
      public Mobile(String MobilephoneType, int Mobilescreensize, int Mobilememorycardcapacity, String newserviceprovider, int Mobilecameraresolution,
              String MobileGPS) {
          this.phonetype = Mobilephonetype;
          this.screensize = 3;
          this.memorycardcapacity = 4;
          this.cameraresolution = 8;
          this.GPS = GPS;
          this.serviceprovider = newserviceprovider;
          this.typeofcontract = 12;
          this.checkcharge = checkcharge;
  
  
      }
  
  }
  
   class mymobile {
      public static void main(String[] args) {
          Mobile Samsung = new Mobile("Samsung", "3", "4", "8",
                  "GPS");
          Mobile Blackberry = new Mobile("Blackberry", "3.", "4",
                  "8", "GPS");
          Samsung.displayMobileDetails();
          Blackberry.displayMobileDetails();
      }
  }
  </code></pre>