public static List<String> generateXVals(int from,int to){
  List<String> xvals=new ArrayList<String>();
  for (int i=from; i < to; i++) {
    xvals.add("" + i);
  }
  return xvals;
}

public static List < String > generateXVals ( int from , int to ) { List < String > xvals = new ArrayList < String > ( ) ; for ( int i = from ; i < to ; i ++ ) { xvals . add ( "" + i ) ; } return xvals ; }
generates an x - values array filled with numbers in range specified by the parameters . can be used for convenience .
