I am getting the following errors ----jGRASP exec: javac -g project1.java project1.java:21: error: cannot find symbol private List> funnies; ^ symbol: class Pair location: class Dircmp project1.java:71: error: cannot find symbol private List> commonBut() { ^ symbol: class Pair location: class Dircmp project1.java:282: error: cannot find symbol public List> getFunnies() { ^ symbol: class Pair location: class Dircmp project1.java:72: error: cannot find symbol List> files = new ArrayList<>(); ^ symbol: class Pair location: class Dircmp project1.java:77: error: cannot find symbol files.add(new Pair<>(file1.getAbsolutePath(), file2.getAbsolutePath())); ^ symbol: class Pair location: class Dircmp project1.java:89: error: cannot find symbol for (Pair filesPair : funnies) { ^ symbol: class Pair location: class Dircmp 6 errors ----jGRASP wedge2: exit code for process is 1. ----jGRASP: operation complete. What is going wrong? how do i fix them?
I am having issues compiling my code, it is too long to add manually, so i have added a link to it below
https://github.com/Philanthropenos/2023-final-work-for-os-class/blob/main/Relevent
I am getting the following errors
----jGRASP exec: javac -g project1.java
project1.java:21: error: cannot find symbol
private List<Pair<String, String>> funnies;
^
symbol: class Pair
location: class Dircmp
project1.java:71: error: cannot find symbol
private List<Pair<String, String>> commonBut() {
^
symbol: class Pair
location: class Dircmp
project1.java:282: error: cannot find symbol
public List<Pair<String, String>> getFunnies() {
^
symbol: class Pair
location: class Dircmp
project1.java:72: error: cannot find symbol
List<Pair<String, String>> files = new ArrayList<>();
^
symbol: class Pair
location: class Dircmp
project1.java:77: error: cannot find symbol
files.add(new Pair<>(file1.getAbsolutePath(), file2.getAbsolutePath()));
^
symbol: class Pair
location: class Dircmp
project1.java:89: error: cannot find symbol
for (Pair<String, String> filesPair : funnies) {
^
symbol: class Pair
location: class Dircmp
6 errors
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.
What is going wrong? how do i fix them?
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)