title: basic java parameter passing, computation inside a method
body: <p>i have initialized a variable value and an inputted value.. netbeans is giving me errors.. can anyone please point out the problem with my code</p>
  
  <pre><code>public class JavaApplication1 {
  
      /**
       * @param args the command line arguments
       */
          static Scanner sc = new Scanner(System.in);
          static double maxLoad = 500;
          static double currLoad;
          static double loadInput = 0;
      public static void main(String[] args) {
  
          String cpNumber;
  
  
          System.out.println("Enter Cellphone Number");
          cpNumber = sc.nextLine();
          System.out.println("Enter load to be bought");
          loadInput = sc.nextDouble();
  
          computeLoad(maxLoad, loadInput);
          System.out.println(currLoad);
      }
  
      public static double computeLoad(double x, double y) {
          double z = 0;
          x - y = z;
      return z;
      }
  }
  </code></pre>
  
  <p>i got another error. it keeps returning 0..</p>