title: Trouble with Fragments in Android Studio
body: <p>I am trying to make a fragment Java file. The xml fragment name is firstscreenlayout. This is the code.</p>
  
  <pre><code>public class FirstScreenFrag extends Fragment{
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      return super.onCreateView(inflater, container, savedInstanceState);
      View view = inflater.inflate(R.layout.firstscreenlayout, container, false);
      return view;
  }
  }
  </code></pre>
  
  <p>The line <code>View view = inflater.inflate(R.layout.firstscreenlayout, container, false);</code> is underlined and says unreachable statement when hovered over. I don't know how to fix this. </p>
  
  <p>I am very new to coding, but am learning in my free time as a student. Please help me! Thanks!</p>