I get this error message when trying to compile, public static void subtract(int a, b);

I get this error message when trying to compile,   public static void subtract(int a, b);
waltbaby315Asked:
Who is Participating?
 
AriMcConnect With a Mentor Commented:
What exactly is the error message? Also please provide the source code you're trying to compile.
0
 
waltbaby315Author Commented:
This is the error message - C:\Users\ivory family\Desktop\DebugThree2.java:16: <identifier> expected
   public static void subtract(int a, b)
0
 
AriMcCommented:
Please attach the source code too. It is pretty much impossible to debug the error code without it.

0
 
objectsCommented:
>    public static void subtract(int a, b)

should be:


   public static void subtract(int a, int b)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.