Details
Description
int reply;
ftp.connect("ftp.foobar.com");
System.out.println("Connected to " + server + ".");
System.out.print(ftp.getReplyString());
(Line 2) ftp.connect parameter values contains the server from next line. It looks like better and can use with copy/paste with one line more
int reply;
String server = "ftp.foobar.com";
ftp.connect(server);
System.out.println("Connected to " + server + ".");
System.out.print(ftp.getReplyString());