private void writeSensorData(ArrayList<Integer> list,String name){
  printWriter.println("<gx:SimpleArrayData name=\"" + name + "\">");
  for (int i=0; i < list.size(); i++) {
    printWriter.println("<gx:value>" + list.get(i) + "</gx:value>");
  }
  printWriter.println("</gx:SimpleArrayData>");
}

private void writeSensorData ( ArrayList < Integer > list , String name ) { printWriter . println ( "<gx:SimpleArrayData name=\"" + name + "\">" ) ; for ( int i = 0 ; i < list . size ( ) ; i ++ ) { printWriter . println ( "<gx:value>" + list . get ( i ) + "</gx:value>" ) ; } printWriter . println ( "</gx:SimpleArrayData>" ) ; }
writes the sensor data .
