private int partition(Vector bonds, int p, int r)
{
- float x = ( (Bond) bonds.elementAt(p)).start[2];
+ float x = ((Bond) bonds.elementAt(p)).start[2];
int i = p - 1;
int j = r + 1;
Bond tmp;
do
{
j--;
- }
- while ( (j >= 0) && ( ( (Bond) bonds.elementAt(j)).start[2] > x));
+ } while ((j >= 0) && (((Bond) bonds.elementAt(j)).start[2] > x));
do
{
i++;
- }
- while ( (i < bonds.size()) &&
- ( ( (Bond) bonds.elementAt(i)).start[2] < x));
+ } while ((i < bonds.size())
+ && (((Bond) bonds.elementAt(i)).start[2] < x));
if (i < j)
{