I am running into some trouble with printing random words (using text()) found in parsing an html file. I can use println(), and actually get it to work; however, I want to display text on a different screen instead.
The error that I'm getting is 'The method text(String, float, float) in the type PApplet is not applicable for the arguments (String)'. I know that I need to convert my float (or is it an int) to a string somehow, but I have so much info going on that I can't easily find a solution. I would be very grateful if anyone can give me a solution!
Here's the code:
import prohtml.*;
import java.util.regex.*;
PrintWriter txtfile;
HtmlList htmlList;
PFont myFont;
void setup(){
size(500,500);
background(255);
myFont = createFont("Rockwell", 48);
textFont(myFont);
frameRate(10);
//enter your url here
htmlList = new HtmlList("http://en.wikipedia.org/wiki/Life");