title: how do I change instanced class variables
body: <p>my code simplified looks something like:</p>
  <pre><code>//class 1
  public class Main
  {
     public static void main(String[] args)
     {
        Process process = new Process(0); //creates new process with ID of 0 
        process.id = 1; //error - I can't call and change process.id here
        System.out.println(process.id);
  
     } 
  }
  
  //class 2:
  public class Process()
  {
     //constructor
     public Process(int tempID)
     {
      int id = tempID;
     }
  }
  </code></pre>
  <p>Where I have the comment error is what I'm stuck with. I want to access and change the id variable of this instanced class I have, but I'm not sure how to</p>