The title of your question is "Get a String of a String []",
You can get the value of the element within the array of Strings using the index.
For example, if we want to obtain the first value, remember that in a Array the first element has the index 0:
String primer_elemento = personas[0]:
primer_elemento
would have the value of "Lucas Lemos".
Some controls have an adapter which can be filled with the data of an array of strings, to get the value when you select an item regularly, you have a method that receives the parameter position
which can be used as an index to obtain the values within the array.
On the other hand, if you want to iterate over all the elements and get their value, you can do this:
String[] personas = { "Lucas Lemos", "Fabricio Quiroga", "Maurano Pepe" , "Juan del Toro" };
for (String s: personas) {
System.out.println("nombre : " + s);
}
and you would have an exit:
nombre : Lucas Lemos
nombre : Fabricio Quiroga
nombre : Maurano Pepe
nombre : Juan del Toro
Also questions: How do I get the ID of the selected String within the array?
I think you mean the index, you can do it this way, example:
int indice = Arrays.asList(personas).indexOf("Juan del Toro");
Where you would find 3
that would be the index of the element in the array.