Java Array Print printArray(int[] nums)

Here you can find the source of printArray(int[] nums)

Description

print Array

License

Apache License

Declaration

public static void printArray(int[] nums) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.List;

public class Main {
    public static void printArray(int[] nums) {
        for (int i : nums) {
            System.out.print(i + ", ");
        }/*from  w ww  .j a va2 s  .  co m*/
        System.out.println();
    }

    public static void print(String message) {
        System.out.print(message);
    }

    public static void print(int num) {
        System.out.print(num);
    }

    public static void print(List<String> list) {
        System.out.println("----------------------------------------------------");
        for (String str : list) {
            System.out.print(str + ", ");
        }
        System.out.println();
    }

    public static void println(String message) {
        System.out.println(message);
    }

    public static void println(int num) {
        System.out.println(num);
    }

    public static void println() {
        System.out.println();
    }
}

Related

  1. printArray(int[] array)
  2. printArray(int[] array)
  3. printArray(int[] array)
  4. printArray(int[] array)
  5. printArray(int[] array, int start, int end)
  6. printArray(Object a[])
  7. printArray(Object[] arr)
  8. printArray(Object[] array)
  9. printArray(Object[] array)