Java List Print printDataPoint(List dataPoint)

Here you can find the source of printDataPoint(List dataPoint)

Description

print Data Point

License

Open Source License

Declaration

public static String printDataPoint(List<Double> dataPoint) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    public static String printDataPoint(List<Double> dataPoint) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < dataPoint.size() - 1; i++) {
            sb.append("x" + i + "=" + dataPoint.get(i) + ", ");
        }//from w  ww .  j av a  2s .  co m
        sb.append("y=" + dataPoint.get(dataPoint.size() - 1));

        System.out.println(sb.toString());
        return sb.toString();
    }
}

Related

  1. print_int(List l)
  2. printArgument(List parameters, StringBuilder sb)
  3. printBoard(List> board)
  4. printBox(List data)
  5. printCollection(List s)
  6. printDelimited(final List list, final String delimiter)
  7. printEachLine(List list)
  8. printFiredRules(List firedRules)
  9. printInclusionFailure(String relName, List list)

  10. HOME | Copyright © www.java2s.com 2016