我正在学习,我是新手,但我想知道如何才能“运行”它。这发生了一个错误:
Static Error: This class does not have a static void main method accepting String[].
这是代码:
/**
* @author "LionH"
*/
public class Caneirinho {
public static void contar() {
int i = 1;
String a = " Carneirinho",
b = " pulando a cerca.",
c = "s";
for (i = 1; i <= 100; i++) {
if (i == 1) {
System.out.println(i + a + b);
} else {
System.out.println(i + a + c + b);
}
}
}
} // Carneirinho