Java Integer Array to String intsToStrings(final int... numbers)

Here you can find the source of intsToStrings(final int... numbers)

Description

ints To Strings

License

MIT License

Declaration

public static String[] intsToStrings(final int... numbers) 

Method Source Code

//package com.java2s;
/*/*  w  w w  .ja v  a  2 s.  c  o m*/
 * Copyright 2009-2015 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

public class Main {
    public static String[] intsToStrings(final int... numbers) {
        if (numbers == null) {
            return null;
        }

        final String[] strings = new String[numbers.length];

        int index = 0;

        for (final int number : numbers) {
            strings[index++] = Integer.toString(number);
        }

        return strings;
    }
}

Related

  1. intArrayToString(String tag, int[] arr)
  2. intArrayToStringArray(int[] ids)
  3. intsToString(int ints[])
  4. intsToString(int[] ary)
  5. intsToString(int[] b)
  6. intsToStrings(int[] intreps)
  7. toTextString(int[] array)