Change your program, so that instead of displaying all the array elements, it asks the user to input a number, then displays just that element. To get this to work, you will need to use Scanner to return an int value.

The above states what i need to do, and the code shows my current status. Not sure really how to go about this , cheers.

```
import java.util.Arrays;
import java.util.Scanner;

/**
 *
 * Purpose: Introduction to data structures
 * @author p'o'p'
 *
 */
public class StudentNames{

    public static void main(String[] args){         
        String[] names = new String[8];                                        
        Scanner s = new Scanner( System.in );
        for( int i = 0; i < 8; i++ ){
            System.out.println( "Enter student name:" );                            
            names[ i ] = s.next();                          
        }                        
        for (int i = 0; i < 8; i++ ){               
            System.out.println(" Input your chosen number" );
            System.out.println("Student name:"+ names[ i ]);         
            int index = i;
            System.out.println( index );                              
        }

    }
}

```