Question

----Can someone please help me solve this one using JAVA ----I thank you in advance Create...

----Can someone please help me solve this one using JAVA

----I thank you in advance

Create an application that reads an HTML file and converts it to plain text.

HTML Converter

INPUT

<h1>Grocery List</h1>

<ul>

    <li>Eggs</li>

    <li>Milk</li>

    <li>Butter</li>

</ul>

OUTPUT

Grocery List

* Eggs

* Milk

* Butter

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Do import the following:

import java.io.*;

Use the buffer reader class to read the lines from the text files.

File file = new File("Existing file path");   

  BufferedReader br = new BufferedReader(new FileReader(file));

// Reader reads the file line by line

Store it in a string array.

Remove the special characters delimiter using char remove at, substring methods.

Please rate it if the above solution helps you in any way or if you have any concerns comment it, I will help you through again.

Add a comment
Know the answer?
Add Answer to:
----Can someone please help me solve this one using JAVA ----I thank you in advance Create...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Can someone help me with this assignment. I am struggling with the formatting PART A Create...

    Can someone help me with this assignment. I am struggling with the formatting PART A Create a web page containing data of your choice and the following styles: A background image that repeats vertically on the right hand side of the page. The image should not scroll with the page contents. All the headings should be displayed in green and Arial fonts. Create at least three headings in your web page. A paragraph style with centered double-spaced text that displays...

  • Hello, please help me with the follpowing question in java, thank you in advance

    Hello, please help me with the follpowing question in java, thank you in advance

  • I need help with my javascript project, I've started on it but I can't seem to...

    I need help with my javascript project, I've started on it but I can't seem to get ym java scripts to work with my index.html. Can someone please help me fix my code? I need the main.js & scratchpad.js to work with my index.html .Thank you Directions: Go to the following link: https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics On that page, scroll down to "A 'hello world' example". Follow the step-by-step instructions to download their code and edit it in your text editor of choice....

  • Im stuck. can someone please show me code on how i can make text appear on...

    Im stuck. can someone please show me code on how i can make text appear on html canvas. i want to create a form where someone for example put their name and when submit button is clicked on the form it appear on the canvas. i am using html javascript. please show code for javascript, canvas, and html. please let me know if im not making sense. Thank you

  • Can someone plz help me??? I would like a website that has to do with guitars...

    Can someone plz help me??? I would like a website that has to do with guitars or something to do with music, someone asked me what kind of website I would like to have and that would be awesome. The attributes to be included, are below. I need a small website that to where I need to interlink a CSS file into the HTML file. I don't know to save the files to have to be able to run with...

  • Please help solve and show all steps. Thanks in advance. Create a C++ application and IPO...

    Please help solve and show all steps. Thanks in advance. Create a C++ application and IPO that will ask the user for the number of watermelons. The application will output how many slices are available. There are 8 slices per watermelon. If the user inputs 2 watermelons the output should be 16 slices. Upload your cpp file and IPO.

  • Can someone help me solve this problem please A combinational circuit converts an Excess-3 input (ABCD)...

    Can someone help me solve this problem please A combinational circuit converts an Excess-3 input (ABCD) into a binary coded decimal output (WXYZ) All invalid combinations are dont cares. Implement the X output using the two level form NOR-OR, and the Y output using AND-NOR. DO NOT IMPLEMENT (W OR Z)

  • THIS IS SAMPLE. HELP ME CREATE CSS FOR THIS. I HAVE SOME HREF PAGES TOO WHICH...

    THIS IS SAMPLE. HELP ME CREATE CSS FOR THIS. I HAVE SOME HREF PAGES TOO WHICH NEED TO BE LOOK GOOD WITH CSS INCLUDING PICTURES. thank you _>>> <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Welcome || Miami</title> </head> <body> <!--Heading 1--> <h1>MIAMI</h1> <br> <h3>Some More Places :</h3> <ol type="1"> <!--Links to other web pages--> <li><a href="keywest.html">KeyWest</a></li> <li><a href="boca.html">Boca</a></li> <li><a href="summerkey.html">Summer Key</a></li> </ol> <br> <!--Image link and Javascript ( onMouseOver="alert('Text to Alert'); return true;" ) to get alert on...

  • This Java program is giving me a good amount of trouble. Can someone solve this for...

    This Java program is giving me a good amount of trouble. Can someone solve this for me and provide explanations? I use BlueJ. Create a class named DLD_JFrame_Arithmetic with a JFrame that accepts two numbers. It is the first time we will use numbers with a JFrame. JTextFields take all inputs as Strings. They must be converted.  int num = Integer.parseInt(number.getText()); We will create Three JLabels, two which prompt user to enter numbers in the JTextFields. The third will be for...

  • Please help with program this. Thank you so much in advance! Create a Java program which...

    Please help with program this. Thank you so much in advance! Create a Java program which implements a simple stack machine. The machine has 6 instructions Push operand Puts a value on the stack. The operand is either a floating point literal or one of 10 memory locations designated MO M9 Pop operand Pops the value on the top of the stack and moves it to the memory location MO-M9 Add Pops the top two values off the stack, performs...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT