I have numbers in an array list which also contains alphanumeric. For example.
1 1a
2 1b
3 2
4a 3
4b 4
4c 5a
4d (or) 5b (or) [in any sequence may be]
5 5c
6 6
7 7
8 8
9a 9
9b 10
10
I this how to delete a single element and reorder the whole list. For example from above list I am going to delete 2, then the result must be.
1 1a
1b
2
3a 2
3b 3
3c 4a
3d (or) 4b (or) [in any sequence may be]
4 4c
5 5
6 6
7 7
8a 8
8b 9
9
I this how to delete a single element and reorder the whole list. For example from above list I am going to delete 3a in left side list and 1b(or)1a in the other hand, then the result must be.
1
1
2
2
3a 3
3b 4a
3c (or) 4b (or) [in any sequence may be]
4 4c
5 5
6 6
7 7
8a 8
8b 9
9
I hope this will explain that what I needed. How to achieve this????
In this you can change the values of
string idString and itemToDeletewhat ever you like to change. It will give the desired output.OUTPUT