I am getting a List and I want to replace the first value in this list with '$' sign, So that I could use it in some place else. But i don't want the rest of the characters in the list to be misplaced or changed. It's okay to get the result as a new list.
I already tried to just use the list.add(index, value) function but it changes the order of the list. But I don't want any change to the rest of the list.
Is there any good tutorials to to learn java streams. I find it confusing to master. Thanks in advance.
If the input list is ('H','E','L','L','O') the output should be exactly like ('$','E','L','L','O').