Cannot resolve symbol 'println'

package org.example;
import java.util.*;

public class ListExamples {
    List<String> names = Arrays.asList("Hi", "Dude","Wow");
    System.out.println(names);
}

I got this error when I try to print: Cannot resolve symbol 'println'
What? I never seen that error before. Its a simple print statement?
Was this page helpful?