I have a string array

```
 String[] names; 

```

lets say there are a given number of elements in the array

I would like to make a getLast method which returns a string

```
  public String getLast() {

    return names.length - 1; 

}

```

This gives me an error that it's incompatible.

How could I do this to return a string? 

Also the same with an add method 

```
 public void add(int index, String element){

```

I'm curious how this would work without using Linkedlist or Arraylist, but rather an Array-based list.