Java Vector to String vectorToString(double[] v)

Here you can find the source of vectorToString(double[] v)

Description

vector To String

License

Open Source License

Parameter

Parameter Description
v a parameter

Return

a string that shows the content of the vector

Declaration

public static String vectorToString(double[] v) 

Method Source Code

//package com.java2s;
/*//from w  ww  . j  a v  a 2s  . co  m
 * Scaffold Hunter
 * Copyright (C) 2006-2008 PG504
 * Copyright (C) 2010-2011 PG552
 * See README.txt in the root directory of the Scaffold Hunter source tree
 * for details.
 *
 * Scaffold Hunter is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * Scaffold Hunter is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

public class Main {
    /**
     * @param v
     * @return
     *  a string that shows the content of the vector
     */
    public static String vectorToString(double[] v) {
        return ("( " + v[0] + ", " + v[1] + ", " + v[2] + " )");
    }
}

Related

  1. vector2string(AbstractList v, String sep)
  2. vector2String(Vector v, String delimiter)
  3. vector_to_strings(Vector v)
  4. vectorString(Vector vec)
  5. vectorToNickNameArray(Vector nicksAndPaths)
  6. vectorToString(int[] v)
  7. vectorToStringArray(Vector vector)