
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?

Trending nowThis is a popular solution!
Step by stepSolved in 3 steps

- JAVA PROGRAM ASAP There is still an extra space in the program after further modification down below as shown in the screesshot. Please modify this program even more please ASAP BECAUSE the program down below does not pass all the test cases when I upload it to hypergrade. The program must pass the test case when uploaded to Hypergrade. import java.util.HashMap;import java.io.BufferedReader;import java.io.FileReader;import java.io.IOException;import java.util.Scanner;public class MorseEncoder { private static final HashMap<Character, String> codeMappings = new HashMap<>(); public static void main(String[] args) { initializeMappings(); Scanner textScanner = new Scanner(System.in); System.out.println("Please enter a string to convert to Morse code:"); String textForEncoding = textScanner.nextLine().toUpperCase(); if ("ENTER".equals(textForEncoding)) { System.out.println(); return; } String…arrow_forwardimport org.firmata4j.IODevice;import org.firmata4j.Pin;import org.firmata4j.firmata.FirmataDevice;import org.firmata4j.ssd1306.SSD1306;import java.io.IOException;import java.util.HashMap;import java.util.TimerTask;public class minorproj extends TimerTask {static String recLog = "\"/dev/cu.usbserial-0001\"";static IODevice myGroveBoard;private final SSD1306 theOledObject;private Pin MoistureSensor;private Pin WaterPump;private Pin Button;private int sampleCount;public minorproj(SSD1306 theOledObject, Pin Button, Pin MoistureSensor, Pin WaterPump) {this.theOledObject = theOledObject;this.Button = Button;this.MoistureSensor = MoistureSensor;this.WaterPump = WaterPump;this.sampleCount = 0;}double startTime = System.currentTimeMillis();@Overridepublic void run() {while (true) {{// check if button is pressedif (this.Button.getValue() == 1) {break; // exit loop and stop program}String VolValue = String.valueOf(MoistureSensor.getValue());System.out.println("Moisture Sensor Value:" +…arrow_forwardIn java: containerdata.txt: 438118Vela7335 58025357780Guangzhou7821 49562228320Calumet8268 42566166336Canadian Miner8154 53127688309Empire MacMahon7148 78880272124Costa Marina8216 48293144769Carl D. Bradley7702 69160345120Baie Comeau7928 59558154640W.H. Gilcher7432 52093569191Burns Harbor7304 31962732239Mesabi Miner7906 52416579241SS Minnow7511 32289732723Western Reserve7457 55462342817Osaka Express7015 48816353071Gudrun Mrsk7965 20312110167Georgic8394 51067293443Gallic8294 44519621580Monterey7672 35540101609Napoli8385 58804376662Nuria7619 57902603981Pamela8022 96674603603Robert S Pierson7620 59019259076Sabrina7389 57665569887William C. Moreland8089 55155313818McKay5148 61598 Cargo Container Report. You will be producing a program which will allow the user to generate the container report on the following page in Container Number order or Ship Name order. The program will also the user to lookup the data for any given Container by number. The % cargo weight is the percentage of…arrow_forward
- Build a class that extends from the Java FX Application class. Name this class - Thread and it needs to use Runnable. You DO NOT NEED to build any GUI code, just build the code to make the thread work. Have the Thread code just loop and print out “Hello World” 100 times. Build a main method in this class which will instantiate this class and start the Thread.arrow_forwardUsing 'import threading' and 'import socket' create a simple and functional Python chat application. Provide an example by creating a server.py and client.py class that allows two clients to connect to one server. Please create your own code and not copied from past questions. As someone whose still brand new to Python, include comments and screenshots. Try to have the code run in the command prompt. Server can allow the clients to input their own usernames. Once the server receives the message from a client, it will forward the message to the intended client and vice-versa. A client can disconnect from the server by sending “.exit” message anytime. Server upon receiving “.exit” message from the client, will close the connection with it.arrow_forwardimport org.firmata4j.IODevice;import org.firmata4j.Pin;import org.firmata4j.firmata.FirmataDevice;import org.firmata4j.ssd1306.SSD1306;import java.io.IOException;import java.util.HashMap;import java.util.TimerTask;public class minorproj extends TimerTask {static String recLog = "\"/dev/cu.usbserial-0001\"";static IODevice myGroveBoard;private final SSD1306 theOledObject;private Pin MoistureSensor;private Pin WaterPump;private Pin Button;private int sampleCount;public minorproj(SSD1306 theOledObject, Pin Button, Pin MoistureSensor, Pin WaterPump) {this.theOledObject = theOledObject;this.Button = Button;this.MoistureSensor = MoistureSensor;this.WaterPump = WaterPump;this.sampleCount = 0;}double startTime = System.currentTimeMillis();@Overridepublic void run() {while (true) {{// check if button is pressedif (this.Button.getValue() == 1) {break; // exit loop and stop program}String VolValue = String.valueOf(MoistureSensor.getValue());System.out.println("Moisture Sensor Value:" +…arrow_forward
- When I printout the javaScript class array, containing several instances from my javascript file, it only shows up on my console, but not on the webpage. How do I get it to show up on the webpage. It has to be done from a separte js file not listed on the same page as the html. This is the code I am using to write out the values in the array. class Item { constructor(name, description, date) { this.name = name; this.description = description; this.date = date; } } const items = []; // Create 7 instances of the Item class items.push(new Item("item1", "description1", "2022-01-01")); items.push(new Item("item2", "description2", "2022-01-02")); items.push(new Item("item3", "description3", "2022-01-03")); items.push(new Item("item4", "description4", "2022-01-04")); items.push(new Item("item5", "description5", "2022-01-05")); items.push(new Item("item6", "description6", "2022-01-06")); items.push(new Item("item7", "description7",…arrow_forwardJava Program ASAP I want only one program. Please pay attention to the screenshot for test case 2 and 3 and please make sure you match the result. Modify this program so it passes the test cases in Hypergrade becauses it says 5 out of 7 passed. import java.io.BufferedReader;import java.io.FileReader;import java.io.IOException;import java.util.ArrayList;import java.util.Arrays;import java.util.InputMismatchException;import java.util.Scanner;public class FileSorting { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (true) { System.out.println("Please enter the file name or type QUIT to exit:"); String fileName = scanner.nextLine(); if (fileName.equalsIgnoreCase("QUIT")) { break; } try { ArrayList<String> lines = readFile(fileName); if (lines.isEmpty()) { System.out.println("File " + fileName + " is…arrow_forwardDO NOT COPY FROM OTHER WEBSITES Upvote guarenteed for a correct and detailed answer. Thank you!!!arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





