最近開始想學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