当前位置: 技术问答>java相关
小弟看不懂这行,恳求帮助!
来源: 互联网 发布时间:2014-12-30
本文导语: public class MailPing{ private static final int SMTP_PORT = 25; public static void main(String[] args) { String host = null; String recipient = null; String sender = null; // 检...
public class MailPing{
private static final int SMTP_PORT = 25;
public static void main(String[] args) {
String host = null;
String recipient = null;
String sender = null;
// 检查命令行参数
if (args.length = 2) {
recipient = args[1];
}
if (args.length >= 3) {
sender = args[2];
}
if (sender == null) {
sender = recipient;
}
(new MailPing()).ping(host, recipient, sender);//
private static final int SMTP_PORT = 25;
public static void main(String[] args) {
String host = null;
String recipient = null;
String sender = null;
// 检查命令行参数
if (args.length = 2) {
recipient = args[1];
}
if (args.length >= 3) {
sender = args[2];
}
if (sender == null) {
sender = recipient;
}
(new MailPing()).ping(host, recipient, sender);//