Java Long Number Array to String longArrayToString(long[] longs)

Here you can find the source of longArrayToString(long[] longs)

Description

long Array To String

License

Open Source License

Declaration

public static String longArrayToString(long[] longs) 

Method Source Code

//package com.java2s;
/*/*from w w w. ja  v  a2s.c o m*/
 NeoDatis ODB : Native Object Database (odb.info@neodatis.org)
 Copyright (C) 2007 NeoDatis Inc. http://www.neodatis.org
    
 "This file is part of the NeoDatis ODB open source object database".
    
 NeoDatis ODB is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.
    
 NeoDatis ODB 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
 Lesser General Public License for more details.
    
 You should have received a copy of the GNU Lesser General Public
 License along with this library; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

public class Main {
    public static String longArrayToString(long[] longs) {
        StringBuffer buffer = new StringBuffer();
        for (int i = 0; i < longs.length; i++) {
            buffer.append(longs[i]).append(" ");
        }
        return buffer.toString();
    }
}

Related

  1. convertLongArrayToString(Long[] longArray)
  2. convertLongArrayToString(long[] value, String separator)
  3. longArrayAsString(long[] a)
  4. longArrayToString(int startIndex, long[] chars)