ARCHIVE - Computer Science Foundations - Java Discussion http://www2.evergreen.edu/csf/taxonomy/term/1/0 A chance for students to ask and answer questions about Java programming. en ARCHIVE - drjava output errors http://www2.evergreen.edu/csf/drjava-output-errors <p>I&#39;m having this weird problem with my Pascal Triangle program....the program compiles fine but when i run it and enter the number of rows the interactions pane gives me this:</p> <p>&nbsp;</p> <p>NullPointerException: <br /> at PascalTri.displayRows(PascalTri.java:30)<br /> at PascalDriver.main(PascalDriver.java:9)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> at java.lang.reflect.Method.invoke(Method.java:597)</p> <p><a href="http://www2.evergreen.edu/csf/drjava-output-errors">read more</a></p> http://www2.evergreen.edu/csf/drjava-output-errors#comment Java Discussion Fri, 22 Feb 2008 14:09:35 -0800 milton13 28 at http://www2.evergreen.edu/csf ARCHIVE - Owl http://www2.evergreen.edu/csf/owl <p>Can anyone tell me what the hell is wrong with this Diffy code?</p> <p>&#160;</p> <p>Diffy d = new Diffy (n1, n2, n3, n4);<br />d.printDiffy();<br />System.out.println();<br />while (d.isZero() == false)<br />{<br />  d.next();  <br />  d.printDiffy(); <br />  System.out.println();                                                          <br />}</p> <p>&#160;</p> http://www2.evergreen.edu/csf/owl#comment Java Discussion Fri, 15 Feb 2008 21:55:04 -0800 garbir21 27 at http://www2.evergreen.edu/csf ARCHIVE - Lewis/Loftus code listings http://www2.evergreen.edu/csf/lewis-loftus-code-listings <p>Code listings suspiciously similar to those found in the Lewis and Loftus text are available here:</p> <p><a href="http://www.cis.uab.edu/ranelli/cs201/Java5Programs/" title="http://www.cis.uab.edu/ranelli/cs201/Java5Programs/">http://www.cis.uab.edu/ranelli/cs201/Java5Programs/</a></p> http://www2.evergreen.edu/csf/lewis-loftus-code-listings#comment Java Discussion Mon, 04 Feb 2008 23:09:16 -0800 burjam19 25 at http://www2.evergreen.edu/csf ARCHIVE - for loops http://www2.evergreen.edu/csf/for-loops <p>for (int i=0; i&lt;n; i++) {</p> <p> System.out.print(&quot;*&quot;);</p> <p>}</p> <p>&nbsp;</p> <p>What was the question? </p> http://www2.evergreen.edu/csf/for-loops#comment Java Discussion Tue, 29 Jan 2008 15:39:20 -0800 weissr 24 at http://www2.evergreen.edu/csf