class homer {
public static void homer(int n)
{
System.out.print(n);
System.out.print("," + n);
}
public static void main(
String[] args)
{
int num = Integer.parseInt(args[0]);
new homer(num);
}
}
I get error:
==============================
C:\Homer.java:15: cannot resolve symbol
symbol : constructor homer (int)
location: class homer
new homer(num);
^
1 error
Tool completed with exit code 1
===============================