How would you read the text from a webpage with Java? Without 3rd party libraries
Stackoverflow suggested using the Html.fromHtml method but it doesn't seem to be part of Java 8.
Uni class... so no Jsoup or HtmlCleaner or Jericho either? (Three decent HTML parser libs for Java.)
Well, I guess you'll just have to deal with the verbosity. It's not hard. Just annoying. Too much work for real life projects, eh.
> Nope, no 3rd party libraries. Sudoku inbound
It's not *that* bad, DESU. Just verbose.
Feel free to do the same exercise with one of the languages I suggested, should be a easier when it's some ugly ass real life HTML. If it's only an exercise HTML or one of the few neat web pages, there's nothing to be afraid of...
>Feel free to do the same exercise with one of the languages I suggested
This is not bad advice, desu. But if you're strapped for time, don't bother obviously.
I suggest using regexes. Just Google regex helper or something like that (I think I use regex101) and copy and paste the file you're supposed to be parsing into there. Fiddle with the regex until everything you're looking for is selected, then boom you're done. All you've got to do is look through the Java documentation for how to apply that bad boy and you're good to go.
Regexes are bullshit to learn, but they're too useful not to use in the long run. Might as well get started now.