class MyFace { int npoints = 0; //the number of points MyPoint [] points; //array of points MyFace (){ points = new MyPoint[0]; } MyFace(MyPoint[] inPoints){ points = new MyPoint[inPoints.length]; npoints = inPoints.length; for(int i=0; i