int[] arr = new int[4];
Arrays.fill(arr, 4);
Arrays.stream(arr).forEach(System.out::println);
I was solving a problem and few of the methods were not recognized. I felt that posting the entire code wasn't necessary so I created a program for those specific methods. They were still unrecognized.
As far as I can imagine, this can be an issue with my vs code. The code works fine in other directories. Any suggestions?
Java version: java 18.0.1.1
I have tried cleaning the workspace but the issue persists in the directory.