I'm learning, I'm newbie but I wanted to know what I do to get "run" it. this happening a error:
Static Error: This class does not have a static void main method accepting String[].
This is the code:
/**
* @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