I\'m new in programming and I would like to know where did I go wrong in instantiating an object. Below is the code:
public class Testing{ private int Sa
You instantiating correctly with new keyword ,But your calss name and method invoking is wrong
new
Testing myTest = new Testing(); int result =myTest.Sample(1); //pass any integer value System.out.println(result );