Create an interpreter class with a static method


Your code should be written in interpreter.java. Create an interpreter class with a static method interpreter that takes in two strings as arguments: the first for the name of input file and second for the name of output file.

You should have another class with a main method to test your code in a seperate file. This file should not be submitted- it is for your testing purposes only.

Skeleton Code that the auto-grader expects:

Define interpreter.java as:

public class interpreter{

public static void interpreter(inFile, outFile){

// function definition here

}

}

Define Tester.java as: (this is a seperate file)

public class Tester{

public static void main(String[] args){

. . .

String input="input.txt";

String output="output.txt";

/* You can also read input and output as command line arguments*/ interpreter.interpreter(input,output);

}

}

Attachment:- Assignment Files.zip

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create an interpreter class with a static method
Reference No:- TGS02262186

Expected delivery within 24 Hours