我写了一些代码。编译时没有问题,提示“处理已完成”;
但是按执行,却出现了
Exception in thread "mian" java.lang.NullPointerException
at HuffmanTree.indexOf(HuffmanTree.java:96)
at HuffmanTree. contain(HuffmanTree.java:104)
at HuffmanTree.<init>(HuffmanTree.java:16)
at HuffmanTree.main(HuffmanTree.java:123)
这些报错怎么看?哪里出问题了,每一句后面的96 16 104 123是什么意思??教教我怎么看报错~谢谢了只剩下10分。求好心人