public static void main(String[] args) {
// The default port
int port_number=2222;
String host="localhost";
if (args.length < 2)
{
System.out.println("Usage: java Client \n"+
"Now using host="+host+", port_number="+port_number);
} else {
host=args[0];
port_number=Integer.valueOf(args[1]).intValue();
}
|