diff --git a/PrintHelloWorld/HelloWorldArrayList.java b/PrintHelloWorld/HelloWorldArrayList.java new file mode 100644 index 0000000..a7c226a --- /dev/null +++ b/PrintHelloWorld/HelloWorldArrayList.java @@ -0,0 +1,11 @@ +import java.util.*; + +public class HelloWorldArrayList { + public static void main(String[] args) { + ArrayList list = new ArrayList(); + list.add("Hello World!"); + + for(String word:list) + System.out.println(word) + } +} \ No newline at end of file