<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'ArrayLIst Problem, help me to find the errors!' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'ArrayLIst Problem, help me to find the errors!' posted on the 'Java' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 05:13:56 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 05:13:56 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>ArrayLIst Problem, help me to find the errors!</title>
      <link>http://www.programmersheaven.com/mb/java/429121/429121/arraylist-problem-help-me-to-find-the-errors/</link>
      <description>Hi, here is part of my code, after compilation, I get a Null Pointer Exception on the ORANGE part, I don't know where goes wrong.&lt;br /&gt;
&lt;br /&gt;
for (int i = 0; i &amp;lt; N_BITS; i++){&lt;br /&gt;
	ResultButton button = new ResultButton(0);&lt;br /&gt;
	add(button, constraint);&lt;br /&gt;
	&lt;span style="color: Orange;"&gt;resArr.add(button);&lt;/span&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
1. N_BITS is a just a constant.&lt;br /&gt;
2. resArr is an ArrayList, containing ResultButton, instance variable.&lt;br /&gt;
3. class ResultButton is defined by myself.&lt;br /&gt;
&lt;br /&gt;
HELP ME TO FIGURE OUT THE PROBLEM, THANK YOU!</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/429121/429121/arraylist-problem-help-me-to-find-the-errors/</guid>
      <pubDate>Mon, 30 Jul 2012 20:23:31 -0700</pubDate>
      <category>Java</category>
    </item>
  </channel>
</rss>