Can anyone please me fix my code? I need to call the search class from the server class. The…

Can anyone please me fix my code? I need to call the search class from the server class. The server class will eventually have code for a seversocket. But I can’t get my main class to output the results which should be which line number that the input was found on and then it should be able to search again.

For example, if you look for Dancer in this text file the results should look like the bottom.

______________________________________

TINY DANCER
SONG BY ELTON JOHN
LYRICS

BLUE-JEAN BABY
L.A. LADY
SEAMSTRESS FOR THE BAND
PRETTY-EYED
PIRATE SMILE
YOU’LL MARRY A MUSIC MAN

BALLERINA
YOU MUST’VE SEEN HER
DANCING IN THE SAND
AND NOW SHE’S IN ME
ALWAYS WITH ME
TINY DANCER IN MY HAND

JESUS FREAKS
OUT IN THE STREET
HANDING TICKETS OUT FOR GOD

TURNING BACK
SHE JUST LAUGHS
THE BOULEVARD IS NOT THAT BAD

PIANO MAN
HE MAKES HIS STAND
IN THE AUDITORIUM

LOOKING ON
SHE SINGS THE SONGS
THE WORDS SHE KNOWS
THE TUNE SHE HUMS

BUT OH, HOW IT FEELS SO REAL
LYING HERE, WITH NO ONE NEAR
ONLY YOU AND YOU CAN HEAR ME
WHEN I SAY SOFTLY, SLOWLY

HOLD ME CLOSER, TINY DANCER
COUNT THE HEADLIGHTS ON THE HIGHWAY
LAY ME DOWN IN SHEETS OF LINEN
YOU HAD A BUSY DAY TODAY

HOLD ME CLOSER, TINY DANCER
COUNT THE HEADLIGHTS ON THE HIGHWAY
LAY ME DOWN IN SHEETS OF LINEN
YOU HAD A BUSY DAY TODAY

BLUE-JEAN BABY
L.A. LADY
SEAMSTRESS FOR THE BAND
PRETTY-EYED
PIRATE SMILE
YOU’LL MARRY A MUSIC MAN

BALLERINA
YOU MUST HAVE SEEN HER
DANCING IN THE SAND
NOW SHE’S IN ME
ALWAYS WITH ME
TINY DANCER IN MY HAND

OH, OH, HOW IT FEELS SO REAL
LYING HERE, WITH NO ONE NEAR
ONLY YOU, AND YOU CAN HEAR ME
WHEN I SAY SOFTLY, SLOWLY

HOLD ME CLOSER, TINY DANCER
COUNT THE HEADLIGHTS ON THE HIGHWAY
LAY ME DOWN IN SHEETS OF LINEN
YOU HAD A BUSY DAY TODAY

HOLD ME CLOSER, TINY DANCER
COUNT THE HEADLIGHTS ON THE HIGHWAY
LAY ME DOWN IN SHEETS OF LINEN
YOU HAD A BUSY DAY TODAY

____________________________________________________

it would output lines:

0

14

32

36

51

56

60

/*-----------------MAIN CLASS(SERVER CLASS)-------------*/
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.*;
import cop2805.WordSearcher.Search;
//import java.util.stream.Collectors;
public class Server {
 
 public static void main(String[] args) throws IOException {
 Scanner scnr = new Scanner(System.in);
 
 WordSearcher ws = new WordSearcher();
 
 WordSearcher.converter();
 WordSearcher.Search search = new WordSearcher.Search();
 
 System.out.printf("Enter the keyword to be searched: ");
 String keyword = scnr.nextLine();
 
 search.searchInFile(keyword);
 
 }
 }
 
 
 
 /*----------------SEARCH CLASS-----------------*/
 import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.*;

public class WordSearcher extends Server {
 
 
 
 private static List

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Online Academic Experts
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Psychology
thank you!
Customer 452947, October 21st, 2021
Human Resources Management (HRM)
Always great! My son has been in critical health these last few semesters. Many times I have thought he wasn't going to make it and thought about quitting or postponing school until he was healthier but it always happens to be in the middle of the semester. This service has been a lifesaver for my mindset in helping keep my grades up and keep my son alive at the same time. I don't know if I could have made it through this period without it.
Customer 453077, June 6th, 2022
Nursing
Thank you
Customer 453087, March 5th, 2022
Economics
Nice work
Customer 453185, May 21st, 2022
Education
N/A
Customer 453057, May 23rd, 2022
English 101
Thank you for this excellent analysis of the Alchemist.
Customer 453213, June 15th, 2022
Sociology
THANK YOUUUUU
Customer 452591, March 18th, 2021
Education
Very fast response and did a excellent job.
Customer 453201, May 31st, 2022
Emergency Management
Overall, I think it's a great service. I have yet to submit the assignment, so I don't know what kind of grade I'll get. But customer service was excellent. Reviews were made and the assignment proofed for satisfaction.
Customer 453015, December 15th, 2021
Business Studies
Paper is great. Just only needed the one reference. Thank you
Customer 453139, May 4th, 2022
Social Work and Human Services
Great work I would love to continue working with this writer thought out the 11 week course.
Customer 452667, May 30th, 2021
Criminal Justice
This has been the greatest help while I am recovering from an illness. Thank your team so much.
Customer 452671, May 2nd, 2021
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat
AllEscortAllEscort
Live ChatWhatsApp
AllEscort