Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Primitive Editor The primary goal of the assignment is to develop a Java based primitive editor. (File required for this are too big to

JAVA Primitive Editor
The primary goal of the assignment is to develop a Java based primitive editor. (File required for this are too big to upload but it is basically a dictionary and a expert from a reading called Billy Goat. I can send files through email if needed.) One such is a form of editor is a Basic File Editor which will do the following types of edits using suitable methods. Using the methods you wont have any visual way of editing the files. Instead, editing is done via a command which, in turn, is executed by the corresponding method. 1. boolean Find (String x) // Looks for a word "x" in the file and returns true if found or false otherwise. 2. boolean FindReplace (String x, String y) // looks for the first occurrence of word "x" in the file and replaces it with word "y" if found returning true, false otherwise. 3. boolean FindInsert (String x, String y) // looks for the first occurrence of word "x" in the file and then insert "y" right after "x", if x is found, returning true, false otherwise. 4. boolean Delete (String x) // looks for the first occurrence of word "x" in the file and deletes it from the file, returning true if x is found, returning false otherwise. 5. String spellCheck () // finds the first occurrence of spelling error and returns the misspelled word. If no word is misspelled returns "Spell Check Passed". 6. void spellCheckAll() // find all misspelled words and output them to the screen. 7. void save() // saves file with the changes made. 8. void print() // saves file with the changes and outputs the contents of the file to the screen. 9. void quit() should save() the file and exit. 10. boolean FindReplaceAll (String x, String y) // looks for all occurrences of word "x" in the file and replace each with word "y" if found returning true, false otherwise.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

User Defined Tensor Data Analysis

Authors: Bin Dong ,Kesheng Wu ,Suren Byna

1st Edition

3030707490, 978-3030707491

More Books

Students also viewed these Databases questions

Question

9-15. Is the subject line effective? Why or why not?

Answered: 1 week ago