\r
\r
public class Zsort {\r
- public static void Zsort(Vector bonds) {\r
+ public void Zsort(Vector bonds) {\r
sort(bonds, 0, bonds.size() - 1);\r
}\r
\r
- public static void sort(Vector bonds, int p, int r) {\r
+ public void sort(Vector bonds, int p, int r) {\r
int q;\r
\r
if (p < r) {\r
}\r
}\r
\r
- private static int partition(Vector bonds, int p, int r) {\r
+ private int partition(Vector bonds, int p, int r) {\r
float x = ((Bond) bonds.elementAt(p)).start[2];\r
int i = p - 1;\r
int j = r + 1;\r