I need some help with editing a string and adding parts of that String to an ArrayList
of strings:
public ArrayList<String> strings = new ArrayList<String>();
Basically my program reads a file from the internet and sets the contents of the read file as a String. I then want to read through the strings contents to find keywords like:
website=http://google.com
website=http://stackoverflow.com
I just want to add the parts after the website=
to the array of strings, I also want to take into account that the website
part is there because I will also have other things apart from website=
such as ping=
. I just don't know how I would do this.
If anybody could help me with this or explain a better way I could go about doing the hole method itself, that would help me out a lot.