Hi, i'm doing a project for my Java class and I know how to add text to a .txt document and remove the entire text but I do not know how to only remove certain parts of text. My code is supposed to allow users to add/remove text depending on the condition.

The code is



import java.io.*;
import java.util.*;

public class texteditor
{
public static void main(String...