title: How to instantiate an object in java?
body: <p>I'm new in programming and I would like to know where did I go wrong in instantiating an object. Below is the code:</p>
  
  <pre><code>public class Testing{
      private int Sample(int c)
      {
          int a = 1;
          int b = 2;
          c = a + b;
          return c;
      }
      public static void main(String []args)
      {
          Sample myTest = new Sample();
          System.out.println(c);
      }
  }
  </code></pre>