I made an app to practice multi tabs...
The app does not even start.. It crashes... please someone give me some help

This is the MainActivity.java

package com.myselfmahesh.newapp;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;

import java.util.ArrayList;
import java.util.List;

public class MainActivity extends AppCompatActivity {

private Toolbar toolbar;
private TabLayout tabLayout;
private ViewPager viewPager;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);

getSupportActionBar().setDisplayHomeAsUpEnabled(true);

viewPager=(ViewPager) findViewById(R.id.toolbar);
setupViewPager(viewPager);

tabLayout=(TabLayout) findViewById(R.id.tabs);
tabLayout.setupWithViewPager(viewPager);

FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
}
});
}

private void setupViewPager(ViewPager viewPager){
ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());
adapter.addFragment(new OneFragment(), "ONE");
adapter.addFragment(new TwoFragment(), "TWO");
adapter.addFragment(new ThreeFragment(), "THREE");
viewPager.setAdapter(adapter);
}

class ViewPagerAdapter extends FragmentPagerAdapter {
private final List<Fragment> mFragmentList = new ArrayList<>();
private final List<String> mFragmentTitleList = new ArrayList<>();

public ViewPagerAdapter(FragmentManager manager) {
super(manager);
}

@Override
public Fragment getItem(int position) {
return mFragmentList.get(position);
}

@Override
public int getCount() {
return mFragmentList.size();
}

public void addFragment(Fragment fragment, String title) {
mFragmentList.add(fragment);
mFragmentTitleList.add(title);
}

@Override
public CharSequence getPageTitle(int position) {
return mFragmentTitleList.get(position);
}
}


@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();

//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}

return super.onOptionsItemSelected(item);
}
}



This is the logcat info:
11-02 23:34:00.818 13785-13785/? D/dalvikvm: Late-enabling CheckJNI
11-02 23:34:00.818 13785-13785/? D/dalvikvm: Try to disable coredump for pid 13785
11-02 23:34:00.818 13785-13785/? D/dalvikvm: Process 13785 nice name: com.myselfmahesh.newapp
11-02 23:34:00.818 13785-13785/? D/dalvikvm: Extra Options: not specified
11-02 23:34:00.928 13785-13785/com.myselfmahesh.newapp W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
11-02 23:34:00.928 13785-13785/com.myselfmahesh.newapp I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.internal.view.WindowCallbackWrapper.onSearchRequested
11-02 23:34:00.928 13785-13785/com.myselfmahesh.newapp W/dalvikvm: VFY: unable to resolve interface method 15450: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
11-02 23:34:00.928 13785-13785/com.myselfmahesh.newapp D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
11-02 23:34:00.928 13785-13785/com.myselfmahesh.newapp I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.internal.view.WindowCallbackWrapper.onWindowStartingActionMode
11-02 23:34:00.928 13785-13785/com.myselfmahesh.newapp W/dalvikvm: VFY: unable to resolve interface method 15454: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
11-02 23:34:00.928 13785-13785/com.myselfmahesh.newapp D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
11-02 23:34:00.978 13785-13785/com.myselfmahesh.newapp I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
11-02 23:34:00.978 13785-13785/com.myselfmahesh.newapp W/dalvikvm: VFY: unable to resolve virtual method 415: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
11-02 23:34:00.978 13785-13785/com.myselfmahesh.newapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
11-02 23:34:00.988 13785-13785/com.myselfmahesh.newapp I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
11-02 23:34:00.988 13785-13785/com.myselfmahesh.newapp W/dalvikvm: VFY: unable to resolve virtual method 437: Landroid/content/res/TypedArray;.getType (I)I
11-02 23:34:00.988 13785-13785/com.myselfmahesh.newapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp D/AndroidRuntime: Shutting down VM
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x430f3140)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime: FATAL EXCEPTION: main
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime: Process: com.myselfmahesh.newapp, PID: 13785
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myselfmahesh.newapp/com.myselfmahesh.newapp.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.Toolbar cannot be cast to android.support.v4.view.ViewPager
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2318)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2396)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.app.ActivityThread.access$800(ActivityThread.java:139)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:149)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5257)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at java.lang.reflect.Method.invokeNative(Native Method)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:515)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at dalvik.system.NativeStart.main(Native Method)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:  Caused by: java.lang.ClassCastException: android.support.v7.widget.Toolbar cannot be cast to android.support.v4.view.ViewPager
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at com.myselfmahesh.newapp.MainActivity.onCreate(MainActivity.java:35)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.app.Activity.performCreate(Activity.java:5411)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2396)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.app.ActivityThread.access$800(ActivityThread.java:139)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:149)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5257)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at java.lang.reflect.Method.invokeNative(Native Method)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:515)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
11-02 23:34:01.048 13785-13785/com.myselfmahesh.newapp E/AndroidRuntime:     at dalvik.system.NativeStart.main(Native Method)
11-02 23:39:01.088 13785-13785/com.myselfmahesh.newapp I/Process: Sending signal. PID: 13785 SIG: 9