title: Creating a TextView for the first 46 Fibonacci numbers on Android
body: <p>I have this so far, and the result is a blank screen.  What might I do to achieve the desired effect of listing the first 46 Fibonacci numbers?</p>
  
  <pre><code>TextView fibNum;
  static int i = 0;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  }
      public static int fib(int n) {
                  int prev1=0, prev2=1;
                  for( i=0; i&lt;n; i++) {
                      int savePrev1 = prev1;
                      prev1 = prev2;
                      prev2 = savePrev1 + prev2;
                  }
                  return prev1;
      }
      public void main(String[] args) {
          for (int i=0; i&lt;=46; i++)
  
          fibNum = new TextView(this);
          fibNum.setText(String.valueOf(fib(i)+", "));
      }
  }
  </code></pre>