title: Unreachable Statement in Strings of Array
body: <pre><code>package com.example.dennis.sunshine.app;
  
  import android.os.Bundle;
  import android.support.v4.app.Fragment;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  
  import java.util.ArrayList;
  import java.util.Arrays;
  import java.util.List;
  
  
  /**
   * A placeholder fragment containing a simple view.
   */
  public class MainActivityFragment extends Fragment {
  
      public MainActivityFragment() {
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          return inflater.inflate(R.layout.fragment_main, container, false);
  
  
          String[] forecastArray = {
          "Today - Sunny - 88 / 63",
          "Tomorrow - Foggy - 70 / 46",
          "Weds - Cloudy - 72 / 63",
          "Thurs - Rainy - 64 / 51",
          "Fri - Foggy - 70 / 46",
          "Sat - Sunny - 76 / 68"
          };
  
          List&lt;String&gt; weekForecast = new ArrayList&lt;String&gt;(Arrays.asList(forecastArray));
      }
  }
  </code></pre>
  
  <p>I'm trying to follow a tutorial on creating <code>ArrayList</code> on <strong>IDE</strong> but I stumble upon an error shows at String[] forecastArray = ..... }; saying that <strong>'Unreachable Statement'</strong>.</p>