diff --git a/src/main/java/com/example/HelloWorld.java b/src/main/java/com/example/HelloWorld.java index d685e89..9b14781 100644 --- a/src/main/java/com/example/HelloWorld.java +++ b/src/main/java/com/example/HelloWorld.java @@ -1,5 +1,6 @@ package com.example; +import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; public final class HelloWorld { @@ -17,6 +18,10 @@ public static ImmutableSet helloWorld() { return ImmutableSet.copyOf(set); } + public static ImmutableList helloWorldCharacters() { + return "Hello World!".chars().boxed().collect(ImmutableList.toImmutableList()); + } + public static boolean isEmpty(String str) { return str.length() == 0; }