I am intermediate Python programmer now learning Java. I'm trying to learn the basics but I keep getting the error:
java: cannot find symbol
symbol: method SumOfTwoNumbers(int,int)
location: class Main
Here's my code
public class Main {
public static void main(String[] args) {
SumOfTwoNumbers c = new SumOfTwoNumbers(3, 2);
}
}
public class SumOfTwoNumbers {
public static int sum(int a, int b) {
return a + b;
}
}