From 31f3c427749613f87662f20061c0d51ba277058f Mon Sep 17 00:00:00 2001 From: Rifqi Fathurrahman Date: Mon, 19 Oct 2020 13:25:18 +0700 Subject: [PATCH] adding HelloWorldArrayList --- PrintHelloWorld/HelloWorldArrayList.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 PrintHelloWorld/HelloWorldArrayList.java 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