public void swapIdx(int idx1,int idx2){
  if ((idx1 >= weapons.size()) || (idx2 >= weapons.size()) || (idx1 < 0)|| (idx2 < 0)) {
    return;
  }
  Mounted m1=weapons.get(idx1);
  weapons.set(idx1,weapons.get(idx2));
  weapons.set(idx2,m1);
  fireContentsChanged(this,idx1,idx1);
  fireContentsChanged(this,idx2,idx2);
}

public void swapIdx ( int idx1 , int idx2 ) { if ( ( idx1 >= weapons . size ( ) ) || ( idx2 >= weapons . size ( ) ) || ( idx1 < 0 ) || ( idx2 < 0 ) ) { return ; } Mounted m1 = weapons . get ( idx1 ) ; weapons . set ( idx1 , weapons . get ( idx2 ) ) ; weapons . set ( idx2 , m1 ) ; fireContentsChanged ( this , idx1 , idx1 ) ; fireContentsChanged ( this , idx2 , idx2 ) ; }
swap the mounteds at the two specified index values .
