Hi I tried to just make a sample code for me to understand how to change the elements to containing a different letter but it didn't quite work out. I am trying to shift 1 position down, so b to the first element, c to second element and etc. I was thinking of using a nested for loop but then I got even more confused.
String test="abcd";
char[] array = test.toCharArray();
for(int i=1; i < array.length; i++)
{
array[i]=array[i-1];
}
System.out.print(array[0]);
System.out.print(array[1]);
System.out.print(array[2]);
System.out.print(array[3]);
--- Update ---
Ah nevermind. I think I have got the hang of it.