title: Android Studio syntax errors
body: <p>I just started to learn about Android App Development, and I am about to create a simple application for starter right now.</p>
  
  <p>I followed a tutorial on YouTube, but I don't know why I get some errors when I'm trying to run my app. It says they expect a ;, ), and more. I tried to look into my code, and i've made sure that every ( have ), and every line has ;</p>
  
  <p>But the list expands and I don't know what's actually wrong.</p>
  
  <pre><code>package org.kosmik.infokosmik;
  
  import android.os.Bundle;
  import android.support.annotation.NonNull;
  import android.support.design.widget.BottomNavigationView;
  import android.support.v4.app.Fragment;
  import android.support.v4.app.FragmentTransaction;
  import android.support.v7.app.AppCompatActivity;
  import android.view.MenuItem;
  import android.widget.FrameLayout;
  
  public class MainActivity extends AppCompatActivity {
  
  private BottomNavigationView mMenuUtama;
  private FrameLayout mFrameUtama;
  
  private berandaFragment berandaFragment;
  private beritaFragment beritaFragment;
  private radioFragment radioFragment;
  private kegiatanFragment kegiatanFragment;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      mFrameUtama = (FrameLayout) findViewById(R.id.frame_utama);
      mMenuUtama = (BottomNavigationView) findViewById((R.id.menu));
  
      berandaFragment = new berandaFragment();
      beritaFragment = new beritaFragment();
      radioFragment = new radioFragment();
      kegiatanFragment = new kegiatanFragment();
  
      mMenuUtama.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
          @Override
          public boolean onNavigationItemSelected(@NonNull MenuItem item) {
                  switch (item.getItemId())) {
  
                      case R.id.menu_beranda :
                          setFragment(berandaFragment);
                          return true;
  
                      case R.id.menu_berita :
                          setFragment(beritaFragment);
                          return true;
  
                      case R.id.menu_radio :
                          setFragment(radioFragment);
                          return true;
  
                      case R.id.menu_kegiatan :
                          setFragment(kegiatanFragment);
                          return true;
  
                      default:
                          return false;
                  }
          }
      }
  }
  
  public void setFragment(Fragment fragment) {
      FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
      fragmentTransaction.replace(R.id.frame_utama, fragment);
      fragmentTransaction.commit();
  };}
  </code></pre>
  
  <p>This is my code on MainActivity.java . Anyway, i would really appreciate it if you would answer and explain it.</p>