SHARE
TWEET

Untitled

a guest Sep 16th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (list.get(j).getHeight() > list.get(j + 1).getHeight()) {
  2.  
  3.                     Rectangle rect1 = list.get(j);
  4.                     Rectangle rect2 = list.get(j + 1);
  5.  
  6.                     float tempX = rect1.getX();
  7.                     rect1.setX(rect2.getX());
  8.                     rect2.setX(tempX);
  9.  
  10.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top