get three variables from string variable name

Hello, i have two questions :
1- i have a array and need to get three rows from it (without repeat the same row)
2-i need to convert the string to variable , to change the variable, like:
public string x;
“x” = “Hello”; // of course will not work , i need some another way
thx

You can use a for loop or a foreach loop to iterate through an array.

for(int i = 0; i < array.length; i++){
//do something with 'array[ i ]'
}

foreach(int query in array){
//do something with 'query'
}

As for your other request I have no idea what your trying to communicate.

It sounds like you need to do a beginners tutorial for coding in general though. Your foundation logic sounds a bit confused.