fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. //String[] classGroup = {"최진혁", "최유빈", "한이람", "이고잉"};
  13. String[] classGroup = new String[4];
  14. classGroup[0] = "최진혁";
  15. System.out.println(classGroup.length);
  16. classGroup[1] = "최유빈";
  17. System.out.println(classGroup.length);
  18. classGroup[2] = "한이람";
  19. System.out.println(classGroup.length);
  20. classGroup[3] = "이고잉";
  21. System.out.println(classGroup.length);
  22. }
  23. }
Success #stdin #stdout 0.12s 54668KB
stdin
Standard input is empty
stdout
4
4
4
4