Java Java Data Structures Organizing Data Splitting Strings

Workspaces don't support Java 8+ streams?

I'm trying to use a stream to print out all of the words in the description and it is not working (code below):


This is the error I'm getting: error: cannot find symbol                                                                                                              
  symbol:   class stream                                                                                                                               
  location: package java.util                                                                                                                  error: cannot find symbol                                                                                                             
  symbol:   method stream()                                                                                                                            
  location: class String[]                                                                                                                             
2 errors


I solved the problem. My mistake was treating an array like it was a list. Here is what I should have done:

import java.util.Arrays;

Also, I didn't need to import "", I guess streams are just in Java by default now.