i want to open further intents when the user clicks on the Array list but every time i click on a list item the same activity opens up. :         package com.example.husnainali.carinfo;
        //sdifjisdjisdjvdsjouvhsdovuhsdovhdsovhsdohv8eo8vo8
        
        import android.content.Intent;
        import android.os.Bundle;
        import android.support.v7.app.AppCompatActivity;
        import android.view.View;
        import android.widget.AdapterView;
        import android.widget.ListView;
        
        import java.util.ArrayList;
        
        public class McLarenActivity extends AppCompatActivity {
        
        
            @Override
        
            protected void onCreate(Bundle savedInstanceState) {
        
        
                super.onCreate(savedInstanceState);
                setContentView(R.layout.word_list);
        //this the arraylist and i want to open further activities when a user clicks on a single arraylist an activity about it opens but currently when i click the 1 and 2 list open the same activity opens up.
        
                final ArrayList<Word> words = new ArrayList<Word>();
        
                words.add(new Word("2017", "720 S", R.drawable.mclaren2017720s));
                words.add(new Word("2015", "675lt", R.drawable.mclaren2015675lt));
                words.add(new Word("2015", "P1 GTR", R.drawable.mclaren2015p1gtr));
                words.add(new Word("2013", "P1", R.drawable.mclaren2013p1));
                words.add(new Word("1994", "F1", R.drawable.mclaren1994f1));
        
        
                WordAdapter adapter = new WordAdapter(this, words);
        
        
                ListView listView = (ListView) findViewById(R.id.list);
        
        
                listView.setAdapter(adapter);
        
        
                listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
                    @Override
                    public void onItemClick(AdapterView<?> adapterView, View view, int position, long 1) {
                        // the word item clicked
                        Word word = words.get(0);
                        Intent i = new Intent(McLarenActivity.this, mclaren720s.class);
                        startActivity(i);
                    }
                });
        
        //these are the set on clicker i have used but some how they are not working correctly
                listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
                    @Override
                    public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {
                        // the word item clicked
                        Word word = words.get(1);
                        Intent i = new Intent(McLarenActivity.this, mclaren675lt.class);
                        startActivity(i);
                    }
                });
        
        
        
        
        
        
        //dvsuoudvhousdhvousdhvoudshvousdhvousdhvouds
        
        
        package com.example.husnainali.carinfo;
        
        
        import android.os.Bundle;
        import android.support.v7.app.AppCompatActivity;
        import android.widget.ImageView;
        import android.widget.ListView;
        
        import java.util.ArrayList;
        
        public class mclaren675lt extends AppCompatActivity {
        
        //this is the second word on the list
            @Override
        
            protected void onCreate(Bundle savedInstanceState) {
        
        
                super.onCreate(savedInstanceState);
                setContentView(R.layout.mclaren675lt);
        
        
                ImageView mclaren720simage = (ImageView) findViewById(R.id.mclaren675ltimage);
        
        
                final ArrayList<Word> words = new ArrayList<Word>();
        
                words.add(new Word(" engine." +
                        "4.0-litre (3993 cc) twin-turbo V8 engine.", "Engine", R.mipmap.enginelogo));
                words.add(new Word(" 0–100km/h in 2.9 seconds.\n" +
                        "Max Speed:341km/h", "Performance", R.mipmap.performancelogocircular));
                words.add(new Word(" $291,564\n" +
                        "£208,600", "Price", R.mipmap.dollarlogocircular));
        
        
                secondWordAdapter adapter = new secondWordAdapter(this, words);
        
        
                ListView listView = (ListView) findViewById(R.id.mclaren675ltlist);
        
        
                listView.setAdapter(adapter);
            }
        
        
        }
        
        
        
        
        
        package com.example.husnainali.carinfo;
        
        
        import android.os.Bundle;
        import android.support.v7.app.AppCompatActivity;
        import android.widget.ImageView;
        import android.widget.ListView;
        
        import java.util.ArrayList;
        
        public class mclaren720s extends AppCompatActivity {
        
        
            @Override
        
            protected void onCreate(Bundle savedInstanceState) {
        
        
                super.onCreate(savedInstanceState);
                setContentView(R.layout.second_list_item);
        
        
        
                ImageView mclaren720simage = (ImageView) findViewById(R.id.mclaren720simage);
        
        
        
                final ArrayList<Word> words = new ArrayList<Word>();
        
                words.add(new Word("M840T engine." +
                        "4.0-litre (3993 cc) twin-turbo V8 engine.", "Engine", R.mipmap.enginelogo));
                words.add(new Word(" 0–100km/h in 2.9 seconds.\n"+
                        "Max Speed:341km/h", "Performance", R.mipmap.performancelogocircular));
                words.add(new Word(" $291,564\n"+
                        "£208,600", "Price", R.mipmap.dollarlogocircular));
        
        
        
        
                secondWordAdapter adapter = new secondWordAdapter(this, words);
        
        
                ListView listView = (ListView) findViewById(R.id.secondlist);
        
        
                listView.setAdapter(adapter);
        
        
        
        
        
            }

}

//fsfehieyshfyesfsifgyiisdhfyhsdhfsd


    
    
    //for activity mclaren 675lt
    
    <?xml version="1.0" encoding="utf-8"?>
    
    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    
        <ImageView
            android:id="@+id/mclaren675ltimage"
            android:src="@drawable/mclaren675ltimage"
            android:layout_width="480dp"
            android:layout_height="240dp"
            android:layout_gravity="center"
            />
    
    
    
        <ListView
    
            android:id="@+id/mclaren675ltlist"
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:paddingBottom="@dimen/activity_vertical_margin"
            android:paddingLeft="@dimen/activity_horizontal_margin"
            android:paddingRight="@dimen/activity_horizontal_margin"
            android:paddingTop="@dimen/activity_vertical_margin" />
    
    
    
    </LinearLayout>
    
    
    
    //sdhofuhsdiufhisduhfids
    
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="horizontal"
        android:padding="16dp">
    
    //for secondlistitem
    
        <ImageView
            android:id="@+id/image"
            android:layout_width="120dp"
            android:layout_height="140dp"
            android:src="@mipmap/ic_launcher"/>
    
    
        <LinearLayout
            android:id="@+id/text_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical"
            android:paddingLeft="16dp">
    
            <TextView
                android:id="@+id/Model_text_view"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textStyle="bold"
                android:textSize="25dp"
                tools:text="458" />
    
            <TextView
                android:id="@+id/Year_text_view"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textStyle="italic"
                android:textSize="20dp"
                tools:text="2011" />
    
        </LinearLayout>
    
    
    </LinearLayout>
    
    
    
    
    
    //for activity mclaren 720s
    
    
    <?xml version="1.0" encoding="utf-8"?>
    
    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    
        <ImageView
            android:id="@+id/mclaren720simage"
            android:src="@drawable/mclaren720simage"
            android:layout_width="480dp"
            android:layout_height="240dp"
            android:layout_gravity="center"
            />
    
    
    
    
        <ListView
    
            android:id="@+id/secondlist"
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:paddingBottom="@dimen/activity_vertical_margin"
            android:paddingLeft="@dimen/activity_horizontal_margin"
            android:paddingRight="@dimen/activity_horizontal_margin"
            android:paddingTop="@dimen/activity_vertical_margin" />
    
    
    
    </LinearLayout>
    
    //ixywxysxyxbsybxysbcysbciwybiwbciwbyiwbciywbcyiwbicybwyibcydbdu
    
    
    package com.example.husnainali.carinfo;
    
    import android.content.Context;
    import android.view.LayoutInflater;
    import android.view.View;
    import android.view.ViewGroup;
    import android.widget.ArrayAdapter;
    import android.widget.ImageView;
    import android.widget.TextView;
    import java.util.ArrayList;
    
    
    public class secondWordAdapter extends ArrayAdapter<Word>  {
    
        public secondWordAdapter(Context context, ArrayList<Word> words) {
            super(context, 0, words);
        }
    
        @Override
        public View getView(int position, View convertView, ViewGroup parent) {
            
            View listItemView = convertView;
            if (listItemView == null) {
                listItemView = LayoutInflater.from(getContext()).inflate(
                        R.layout.secondlistitem, parent, false);
            }
    
            TextView modelTextView = (TextView) listItemView.findViewById(R.id.Model_text_view);
          
            modelTextView.setText(currentWord.getModelTranslation());
    
            TextView yearTextView = (TextView) listItemView.findViewById(R.id.Year_text_view);
        
            yearTextView.setText(currentWord.getYearTranslation());
    
            ImageView imageView = (ImageView) listItemView.findViewById(R.id.image);
    
            imageView.setImageResource(currentWord.getImageResourceId());
    
            
            return listItemView;
        }
    }


//sdiyssiygsygdygisyybyicbsybbyybsiyfisbsybiiysbyibsybfysbsiybsiybsiybsiybfyisbifsbfyibfsiyfbsifysbfyifbsyfbsyfsbfyibsiyfbsfybfsiybtwiwunucnwoecnowencownecuonewocnoweuncouwencuocybywbuweucwbeycebiyewciyvecywevewiwycvyweicvtviwycwncwuonwenoucnwodkskslslncuweneucnusncunwiecysbdysbcyiwebciybiwyebc//