求救:为什么会报nullpointexception??? 调试一下,看看in 是不是null 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 把这句话拿到构造函数外边看看还有没有问题。server = new ServerSocket (port); public void Server() 有误,构选函数不可以有返回类型.所以此类没有构造函数.变量server根本就没有被初始化为null. 补充:正确为 public Server() 即可.try it! eric_lu说得对在try外面写in=null;不能只定义in I got it!!!remove the void from the definition on construct function.and everything is OK!kick JNDi的资料 请问怎样实现密码区域? 求助:关于使用JavaMail 发邮件乱码问题. 急救,以下程序如何遍写! 我要实现一种树结构,甚至不知道Java能不能做,请进! 我已经装好了jCreator pro了,以后我下载了jdkhelp,请问: 请问有关安全电子交易(set)的开发问题 JAVA中如何创建数据库? 将22222222.55显示为2,222,222.55,怎么处理 《Java 2 编程详解》程序清单14.12中的一个问题。 大家看看,这段程序(简单) 迷宫问题求解。高分,不够再补
server = new ServerSocket (port);
构选函数不可以有返回类型.
所以此类没有构造函数.变量server根本就没有被初始化为null.
在try外面写in=null;
不能只定义in
remove the void from the definition on construct function.
and everything is OK!
kick