Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help with this java assingment Thanks. RunTime Class - You will write the

ID: 3801186 • Letter: I

Question

I need help with this java assingment Thanks.

RunTime Class - You will write the RunTime.java class which will implement the Runtime Interface.

Array Based List Class- You will write the ArrayBasedList.java class which will implement the List Interface. Please note that you do not inherit from the RunTime class.

Linked List Class- You will write the LinkedList.java class which will implement the List Interface. Please note that you do not inherit from the RunTime class.

LinkedListNode Class- Your will write the LinkedListNode.java. Please note that you do not inherit from the RunTime class.

Driver Class- You will write the Driver.java class which will implement the Driver Interface. Please note that you do not inherit from the RunTime class. However, you do have to use the RunTime class to measure run times.

LinkedListNode Class constructors and methods

Runtime Interface Methods

ListInterface Methods

Driver Interface Methods

public class L istNode. extends java lang. object Constructor Summary Constructors Constructor and Description Linked istNode (I data) Constructor LinkedListNode class Linked istNode (I data LinkedListNode next) Constructor that for the Node class

Explanation / Answer

try { // Execute a command with an argument that contains a space String[] commands = new String[]{"grep", "hello world", "/tmp/f.txt"}; commands = new String[]{"grep", "hello world", "c:\Documents and Settings\f.txt"}; Process child = Runtime.getRuntime().exec(commands); } catch (IOException e) { } String path1 = "f://" + File.separator+username+File.separator+progName; Runtime runtime = Runtime.getRuntime(); String command = "javac -classpath " + path + " " + path1; System.out.println(command); Process process = runtime.exec(command); InputStream error = process.getErrorStream();