Android String to Long Convert longsToString(long... longs)

Here you can find the source of longsToString(long... longs)

Description

longs To String

License

Open Source License

Declaration

public static String longsToString(long... longs) 

Method Source Code

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

public class Main {
    public static String longsToString(long... longs) {
        StringBuilder string = new StringBuilder();
        for (int i = 0; i < longs.length; i++) {
            long aLong = longs[i];
            string.append(aLong);/* w ww .ja  v  a  2  s . co  m*/
            if (i + 1 < longs.length)
                string.append(",");
        }

        return string.toString();
    }
}

Related

  1. toLong(String value)
  2. toLong(String str, long defValue)
  3. parseLong(String string, long defValue)
  4. convertStringToLong(String str, long failValue)
  5. stringToLong(String input)
  6. parseCSLongs(String s)
  7. parseLong(String s)
  8. parseLongWithDefault(String s, long defValue)
  9. parseLong(String s, long iDefault)