From ee71e44755ccde42d255d1cf8b4cc94f1586c6e1 Mon Sep 17 00:00:00 2001 From: Assassin-compiler <70448612+Assassin-compiler@users.noreply.github.com> Date: Sun, 9 Oct 2022 22:23:17 +0530 Subject: [PATCH 1/2] Create hello.java --- AWT/hello.java | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 AWT/hello.java diff --git a/AWT/hello.java b/AWT/hello.java new file mode 100644 index 0000000..0a55a80 --- /dev/null +++ b/AWT/hello.java @@ -0,0 +1,8 @@ +import java.util.Scanner; +class hello +{ + public static void main(String[] args) + { + System.out.println("Hello"); + } +} From 5409bace8043b95c45334607f89fce99d2ce49ca Mon Sep 17 00:00:00 2001 From: Aakash Kumar Sahoo <56172886+jvm-coder@users.noreply.github.com> Date: Wed, 21 Dec 2022 23:48:02 +0530 Subject: [PATCH 2/2] Update ArrayListIteration.java --- ArrayListIteration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArrayListIteration.java b/ArrayListIteration.java index 5b7edf6..6e14e50 100644 --- a/ArrayListIteration.java +++ b/ArrayListIteration.java @@ -16,7 +16,7 @@ public static void main(String[] args) { System.out.println(course); } - //basic loop with iterator + //basic loop with iterato for(Iterator iterator = courses.iterator();iterator.hasNext();){ String course = (String)iterator.next(); System.out.println(course); @@ -36,4 +36,4 @@ public static void main(String[] args) { // Java 8 forEach + lambda courses.forEach(course -> System.out.println(course)); } -} \ No newline at end of file +}