Java Array to String arrayToString(float[][] array)

Here you can find the source of arrayToString(float[][] array)

Description

array To String

License

Open Source License

Declaration

public static String arrayToString(float[][] array) 

Method Source Code

//package com.java2s;
/*/* w w  w . ja v a  2s  .  com*/
 * Copyright (c) 2008-2013 Maksim Khadkevich and Fondazione Bruno Kessler.
 *
 * This file is part of MART.
 * MART is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2, as published
 * by the Free Software Foundation.
 *
 * MART 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 MART; if not, write to the Free Software Foundation,
 * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

public class Main {
    public static String arrayToString(float[][] array) {
        StringBuilder out = new StringBuilder();
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[0].length; j++) {
                out.append(array[i][j]).append(" ");
            }
            out.append("\n");
        }
        return out.toString();
    }
}

Related

  1. arrayToString(final String[] values)
  2. arrayToString(final T... data)
  3. arrayToString(final T[] array)
  4. arrayToString(float[] a)
  5. arrayToString(float[] arg)
  6. arrayToString(int[] ar)
  7. arrayToString(int[] arr)
  8. arrayToString(int[] arr)
  9. arrayToString(int[] arr)