Two ways.

One, make it a static method and do this in the main method

System.out.println(className.Amr(2,3));

Or use the constructor of your first class to make an object of that class...