Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Introduction to Functional Programming Java's Functional Toolset Using forEach

Using forEach Challenge

Hello!

I am having trouble with this challenge. When executing prepareSubmission, everything works properly. I upload the zip file, and it tells me that it encountered an error.

I have tried this multiple times with multiple new zip files. Any help would be appreciated!

Below is my updated method if that helps:

  public static void printChipmunksDeclaratively(List<String> chipmunks) {
    chipmunks.forEach(chipmunk -> System.out.println(chipmunk + "!"));
  }

1 Answer

I've been running into the same problem. Specifically all the submissions required for the Functional Programming portion of the course. I saw a post from someone in 2018 I think that said it may have to do with incompatibility between the Java Version and Gradle Version but I have yet to find a fix. If you figure out what to do, I'd love to know!