7

Parsing a text file using Jsoup

view full story
linux-howto

http://stackoverflow.com – I have a Continent.txt file placed in my res/raw folder. Inside it contains the following. <div class="continents"> <a href="#US">US</a> <a href="#CA">Canada</a> <a href="#EU">Europe</a> </div> I am able to parse the text US, Canada, Europe using jsoup, but when I display them to a TextView, they show up in one line. The output looks like this. US Canada Europe I want the ouput to be like this. US Canada Europe This is my code. package com.example.readfile; import java.io.InputStream; import java.util.ArrayList; import (HowTos)