Java Arrays convert array to String for debug

Description

Java Arrays convert array to String for debug


import java.util.Arrays;

public class Main {
  public static void main(String args[]) {
    String s[] = {"CSS", "HTML", "css", "demo2s.com"};

    System.out.println(Arrays.toString(s));
  }/*  w  ww .  j  a  v  a  2s .co  m*/
}



PreviousNext

Related