Java Integer Array to Long intArrayToLong(int[] array)

Here you can find the source of intArrayToLong(int[] array)

Description

int Array To Long

License

Open Source License

Declaration

public static long intArrayToLong(int[] array) 

Method Source Code

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

public class Main {
    public static long intArrayToLong(int[] array) {
        StringBuilder sb = new StringBuilder();
        for (int element : array) {
            sb.append(element);//w  ww  .ja v a2 s .  c o  m
        }
        return Long.parseLong(sb.toString());
    }
}

Related

  1. intArrayToLongArray(int[] ints)