Java Array Print printArray(String[] s)

Here you can find the source of printArray(String[] s)

Description

Affiche un array

License

Open Source License

Declaration

public static void printArray(String[] s) 

Method Source Code

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

public class Main {
    /** Affiche un array */
    public static void printArray(String[] s) {
        for (int i = 0; i < s.length; i++) {
            System.out.println(i + ". " + s[i]);
        }// w w  w  .  j a v  a2s  .c o  m
    }

    public static void printArray(int[][] s) {
        for (int i = 0; i < s.length; i++) {
            for (int j = 0; j < s[0].length; j++) {
                System.out.println(i + ". " + s[i][j]);
            }
        }
    }
}

Related

  1. printArray(Object[] o)
  2. printArray(Object[] strArray, String split)
  3. printArray(String arrayLabel, Object[] array)
  4. printArray(String[] arr, char separator)
  5. printArray(String[] s)
  6. printArray(T[] arr)
  7. printArray(T[] array)
  8. printArray(T[] array)
  9. printArrayElements(T[] array)