I wrote a simple program as below,
public static void main()
s = new Socket("263.net", 110);
But when compiling, the compiler displayed an error "Can not make a static reference to a non_static xxxx
(maybe variable, class, or something like that):
s = new Socket("263.net", 110); "
I'm completely puzzled and I have typed everything exactly as printed in the book. I myself can not see anything wrong in the code. Could you please offer an answer? and by the way, I'm trying to write an applet dealing with POP3 and SMTP server. If you can give me one (doesn't need to be a complete applet, some explanation about the POP3 and SMTP server can also do), I'll be greatly appreciated.