This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have an arryalist of 10 (say) items in it. I want to push "x" item (not known what it's index might be) to be the second item in the list. e.g Arraylist a =[a,b,c,d,e,f,X,h,i,j]; I want to change the items order such that A becomes: Arraylist a=[a,X,b,c,d,e,f,h,i,j] Can someone sugest me way to do it? Thanks!!