// This application displays some math facts
public class DebugThree2
public static void main(String args)
int a = 2, b = 5, c = 10;
public static void add()
System.out.println("The sum of " + a +
and + b + is + a + b);
public void subtract()
System.out.println("The difference between " +
a + and + b + is + a - b);
Thank you for the opportunity to help you with your question!
There shouldn't be main function in a class.
Either rename the main function or remove the class in order to made the code work
Content will be erased after question is completed.
Enter the email address associated with your account, and we will email you a link to reset your password.
Forgot your password?