So basically my assignment is to write a few Java methods that contain arrays in the parameters, and then test each one using a main method within the same class. However, I can't figure out how to invoke the methods... I keep getting a compiler error that states "join(char[]) in Homework cannot be applied to (char,char,char)". Here's one of the methods I'm working on - does anyone have any suggestions? I will greatly appreciate any help!
public class Homework
{
public static String join (char[]a)
{
String result = "";
for (int i = 0; i < a.length; i++)
{
result = result + " " + a[i];
} // end for
return result;
} // end method
public static void main (String args [])
{
System.out.println("join method test = " + join('a', 'b', 'c'));
} // end main
} // end class