I got my program to compile, but I'm getting this null pointer error. Can anyone help me figure out why? I'd appreciate it.
<br /> [errors]<br /> Microsoft Windows 2000 [Version 5.00.2195]<br /> (C) Copyright 1985-2000 Microsoft Corp.<br /> C:\myjava>cd assignment3<br /> C:\myjava\assignment3>cd problem1
C:\myjava\assignment3\problem1>
java printOutThreadGroups
Top Most ThreadGroup: "system" has the following
Thread Groups:
**********************
Thread Group: "main" has the following threads:
"main"
Exception in thread "main" java.lang.NullPointerException
at printOutThreadGroups.printOutThreadGroups(printOutThreadGroups.java:5
5)
at printOutThreadGroups.main(printOutThreadGroups.java:9)
C:\myjava\assignment3\problem1>
[/errors]
------------------
Thanks, Dianne