示例#1
0
  // Read coordinate data from stdin
  static void read_input(Gesture g) throws IOException {
    BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
    String line;

    while ((line = stdin.readLine()) != null) {
      String[] field = line.split("[ \t]+");
      double[] point = new double[3];

      for (int i = 0; i < 3; i++) point[i] = Double.parseDouble(field[i]);

      // System.out.println("Input coordinate " + point[0] + ", " + point[1] + ", " + point[2]);
      g.add(point);
    }
    return;
  }