0
{
System.out.printf("Enter your choice [1-4]: " +  "\n\n1. Record Rent Collection" + "\n" +"2. Record Expense" + "\n" +"3. Generate Portfolio Report"+ "\n" + "4. Save" + "\n" + "5. Exit Program");{
    menu = input.nextInt();
    }
    if (menu == 1) {
        System.out.println("Enter the address of the property: ");


    }

This is what I've written so far for a menu selection, I'm just trying to figure out what to put after the print command to read the txt file when a certain keyword is searched. I'd like it to display the results from the txt file.

EDIT: I need it to display search results.

NHCCrip
  • 9
  • 3
  • Does this answer your question? [Reading a plain text file in Java](https://stackoverflow.com/questions/4716503/reading-a-plain-text-file-in-java) – isAif May 20 '20 at 05:36

0 Answers0