Trying to print a method for a table
I'm trying to print a method for a table and I'm not sure what I'm doing wrong.
I did this:
{
public static void report Table();
{ System.out.printf("Report");
System.out.printf("name " + "value " + "message"); }
then I get an error message of
Report.java:33: error: ';' expected
report Table();
^
Report.java:50: error: illegal start of expression
public static void report Table();
^
Report.java:50: error: illegal start of expression
public static void report Table();
^
Report.java:50: error: ';' expected
public static void report Table();
^
Report.java:50: error: ';' expected
public static void report Table();
^
What am I doing wrong?
Re: Trying to print a method for a table
Method names cannot contain spaces, and if you want to define the method body (which it looks like you do), then you shouldn't put a semicolon after the method declaration.