Tagged Questions
4
votes
2answers
3k views
How to send HTML formated mail in Java?
This is what is my Java code to send mail in HTML format.
import java.util.Properties;
import javax.mail.Authenticator;
import javax.mail.Message;
import javax.mail.Message.RecipientType;
import ...
2
votes
2answers
261 views
Code Review Stack Exchange crawler
I am writing a program which automatically crawls codes from Code Review site!
I'm quite new to Java. Would you please review my code?
The required .jars: jsoup, org.apache.commons.io.
Main.java:
...
0
votes
1answer
180 views
HTML downloader and parser - Would you review my code?
Good morning! (or afternoon, or even evening!)
This program downloads CodeReview HTML file and parses it.
Could you review my program?
There are 2 classes:
First - main.java
import java.net.URL;
...
8
votes
1answer
237 views
Webpage downloader
I wanted to download a webpage. I confirmed that this code works. But I'm not sure whether I'm doing it neatly. Would you review my (full) code?
import java.io.IOException;
import ...
1
vote
2answers
279 views
Is there a more efficient way of loading views within my java app?
I'm building a web application in Java. I'm new to Java, so before I get too far into this... I'm hoping to take advantage of all the experience here and learn the problems with this setup.
My ...
8
votes
6answers
2k views
Android: remove useless whitespace from styled string
I have a big string resource (basically the "about" text of the application) which contains styles (such as <b>, <a> etc.). The string resource is written on multiple lines, like this:
...