最近开始想学Java 先是看thenewboston的入门影片 他的影片都满简单的,可是怕有模糊的地方 就找了中文的资源<程式语言教学志>来看,其中有一个例题是这样 class test { int fu(int s) { if (s == 0 || s == 1) { return 1; } else { return fu(s - 1) + fu(s - 2); } } public static void main(String[] args) { test v = new test(); int s = 5; while (s > 0) { System.out.println(v.fu(s)); s