我有以下代码:
public class FibonnaciSeries {
static {
int first = 0;
int next = 1;
int sum = 0;
System.out.println(first);
System.out.println(next);
for (int i = 2; i < 10; i++) {
sum = next + first;
first = next;
next = sum;
System.out.println(sum);
}
}
}
当我想在 Eclipse 中运行它时,它没有运行。为什么。?