<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Java Programming Forums - The Java Community - Collections and Generics</title>
		<link>http://www.javaprogrammingforums.com/</link>
		<description>Arrays, ArrayList, HashMap..</description>
		<language>en</language>
		<lastBuildDate>Tue, 18 Jun 2013 23:39:00 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.javaprogrammingforums.com/images/misc/rss.png</url>
			<title>Java Programming Forums - The Java Community - Collections and Generics</title>
			<link>http://www.javaprogrammingforums.com/</link>
		</image>
		<item>
			<title>Java 1.4 Array issues - controlling array size for dynamic usage</title>
			<link>http://www.javaprogrammingforums.com/collections-generics/30054-java-1-4-array-issues-controlling-array-size-dynamic-usage.html</link>
			<pubDate>Mon, 17 Jun 2013 16:14:46 GMT</pubDate>
			<description>I am working on a system and restricted to using Java 1.4 
I have some working code but when declaring an Array I am having to set an Array size...</description>
			<content:encoded><![CDATA[<div>I am working on a system and restricted to using Java 1.4<br />
I have some working code but when declaring an Array I am having to set an Array size large enough to provide for now and the future (as Generics such as ArrayLists and Collections don't seem possible until 1.5). The issue is then when I read through the Array my code crashes at the first null value.<br />
<br />
Now I can program to check for the null value and exit the read through, but is there a better way in 1.4? How would you best go about a dynamically sized array in 1.4?<br />
<br />
Snippet:<br />
<br />
	String query = &quot;select Partition.* from Partition where Name like 'SS%'&quot;;<br />
	if(debug) jcsOut.println(&quot;Finding Partitions&quot;);<br />
<br />
	String[][] partitions = new String[800][3];<br />
	int i = 0;<br />
<br />
	for (Iterator it = jcsSession.executeObjectQuery(query, null); it.hasNext();)<br />
		{<br />
		  Partition p = (Partition) it.next();<br />
		  <br />
		  if(debug) jcsOut.println(p.getName());<br />
		  partitions[i][0] = p.getName();<br />
<br />
		  if(p.getName().substring(2,4).equals(&quot;BA&quot;))<br />
		  {<br />
			  //jcsOut.println(&quot;MATCH&quot;);<br />
			  if(debug) jcsOut.println(p.getName().substring(2,4));<br />
			  partitions[i][1] = p.getName().substring(2,4);<br />
			  if(debug) jcsOut.println(p.getName().substring(5,9).replace(  &quot;_&quot;,&quot;&quot;)+p.getName().substring(9).replace(&quot;_&quot;,&quot;-&quot;));<br />
			  partitions[i][2] = p.getName().substring(5,9).replace(&quot;_&quot;,&quot;&quot;)+p.getNa  me().substring(9).replace(&quot;_&quot;,&quot;-&quot;);<br />
		  } else if (p.getName().substring(0,2).equals(&quot;SS&quot;))<br />
		  {<br />
			  //jcsOut.println(&quot;MATCH&quot;);<br />
			  if(debug) jcsOut.println(p.getName().substring(0,2));<br />
			  partitions[i][1] = p.getName().substring(0,2);<br />
		  }<br />
<br />
<br />
		  if(debug) jcsOut.println(&quot;  &quot;);<br />
<br />
		  i++;<br />
		}</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/collections-generics/">Collections and Generics</category>
			<dc:creator>doonan79</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/collections-generics/30054-java-1-4-array-issues-controlling-array-size-dynamic-usage.html</guid>
		</item>
		<item>
			<title>Binding object</title>
			<link>http://www.javaprogrammingforums.com/collections-generics/29774-binding-object.html</link>
			<pubDate>Fri, 31 May 2013 15:41:34 GMT</pubDate>
			<description>I have an Object A that contains more elements, and i have an object B that is equal to A. 
If A elements contains value, how can set B with same...</description>
			<content:encoded><![CDATA[<div>I have an Object A that contains more elements, and i have an object B that is equal to A.<br />
If A elements contains value, how can set B with same value?<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/collections-generics/">Collections and Generics</category>
			<dc:creator>marcobelli</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/collections-generics/29774-binding-object.html</guid>
		</item>
		<item>
			<title>How to fix this class/program</title>
			<link>http://www.javaprogrammingforums.com/collections-generics/29736-how-fix-class-program.html</link>
			<pubDate>Wed, 29 May 2013 12:01:54 GMT</pubDate>
			<description><![CDATA[Last week we received a test about Java Fundamentals and I wasn't able to finish it, I was wondering if someone could explain it to how to get it...]]></description>
			<content:encoded><![CDATA[<div>Last week we received a test about Java Fundamentals and I wasn't able to finish it, I was wondering if someone could explain it to how to get it done.<br />
The task was this:<br />
Complete the program with collections, generics,... to get this output:<br />
<br />
Room 11 has Hans Desmet as it's teacher <br />
Felix De Vliegher follows basis<br />
Koen Vanhoutte follows java<br />
Serge Vereecke follows java<br />
Freddy Himpe follows .net<br />
<br />
Room 11 has Hans Desmet as it's teacher<br />
There are 4 cursisten <br />
Felix De Vliegher follows C++<br />
Serge Vereecke follows java<br />
Freddy Himpe follows .net<br />
Alexandra Blondeel follows java<br />
<br />
and this was given <br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code Java:</div>
                <hr /><code class="bbcode_code"><div class="java" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #7F0055; font-weight: bold;">class</span> Main  <span style="color: #000000;">&#123;</span>   
&nbsp;
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #7F0055; font-weight: bold;">static</span> <span style="color: #7F0055; font-weight: bold;">void</span> main<span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> args<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
&nbsp;
       Traject traject1 <span style="color: #000000;">=</span> <span style="color: #7F0055; font-weight: bold;">new</span> Traject<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;c++&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       Traject traject2 <span style="color: #000000;">=</span> <span style="color: #7F0055; font-weight: bold;">new</span> Traject<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;java&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       Traject traject3 <span style="color: #000000;">=</span> <span style="color: #7F0055; font-weight: bold;">new</span> Traject<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;.net&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       Traject traject4 <span style="color: #000000;">=</span> <span style="color: #7F0055; font-weight: bold;">new</span> Traject<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;basis&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       Cursist cursist1 <span style="color: #000000;">=</span> <span style="color: #7F0055; font-weight: bold;">new</span> Cursist<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;Felix&quot;</span>   , <span style="color: #0000ff;">&quot;De Vliegher&quot;</span>  ,  traject4<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       Cursist cursist2 <span style="color: #000000;">=</span> <span style="color: #7F0055; font-weight: bold;">new</span> Cursist<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;Koen&quot;</span>    , <span style="color: #0000ff;">&quot;Vanhoutte,&quot;</span>   ,  traject2<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       Cursist cursist3 <span style="color: #000000;">=</span> <span style="color: #7F0055; font-weight: bold;">new</span> Cursist<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;Serge&quot;</span>   , <span style="color: #0000ff;">&quot;Vereecke&quot;</span>     ,  traject2<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       Cursist cursist4 <span style="color: #000000;">=</span> <span style="color: #7F0055; font-weight: bold;">new</span> Cursist<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;Freddy&quot;</span>  , <span style="color: #0000ff;">&quot;Himpe&quot;</span>        ,  traject3<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       Instructeur instructeur <span style="color: #000000;">=</span> <span style="color: #7F0055; font-weight: bold;">new</span> Instructeur<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;Hans&quot;</span>,<span style="color: #0000ff;">&quot;Desmet&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       Lokaal lokaal <span style="color: #000000;">=</span> <span style="color: #7F0055; font-weight: bold;">new</span> Lokaal<span style="color: #000000;">&#40;</span><span style="color: #cc66cc;">11</span>, instructeur<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       lokaal.<span style="color: #000000;">add</span><span style="color: #000000;">&#40;</span>cursist1<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       lokaal.<span style="color: #000000;">add</span><span style="color: #000000;">&#40;</span>cursist2<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       lokaal.<span style="color: #000000;">add</span><span style="color: #000000;">&#40;</span>cursist3<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       lokaal.<span style="color: #000000;">add</span><span style="color: #000000;">&#40;</span>cursist4<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #000000;">out</span>.<span style="color: #000000;">println</span><span style="color: #000000;">&#40;</span>lokaal<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       cursist1.<span style="color: #000000;">setTraject</span><span style="color: #000000;">&#40;</span>traject1<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       Cursist cursist5 <span style="color: #000000;">=</span> <span style="color: #7F0055; font-weight: bold;">new</span> Cursist<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;Alexandra&quot;</span> , <span style="color: #0000ff;">&quot;Blondeel&quot;</span>, traject2<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       lokaal.<span style="color: #000000;">remove</span><span style="color: #000000;">&#40;</span>cursist2<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
       <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #000000;">out</span>.<span style="color: #000000;">println</span><span style="color: #000000;">&#40;</span>lokaal<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
&nbsp;
&nbsp;
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></code><hr />
</div> <font color="Silver"><br />
<br />
--- Update ---<br />
<br />
</font>So far I made these classes:<br />
i think in class Lokaal is everything wrong but I have no idea how to fix it....<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code Java:</div>
                <hr /><code class="bbcode_code"><div class="java" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #7F0055; font-weight: bold;">class</span> Traject <span style="color: #000000;">&#123;</span>
    <span style="color: #7F0055; font-weight: bold;">public</span> Traject<span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> traject<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        setTraject<span style="color: #000000;">&#40;</span>traject<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>        
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> traject<span style="color: #000000;">;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> getTraject<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">return</span> traject<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #7F0055; font-weight: bold;">void</span> setTraject<span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> traject<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">this</span>.<span style="color: #000000;">traject</span> <span style="color: #000000;">=</span> traject<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
    @Override
     <span style="color: #7F0055; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> toString<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
         <span style="color: #7F0055; font-weight: bold;">return</span> traject<span style="color: #000000;">;</span>
     <span style="color: #000000;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #000000;">&#125;</span></pre></div></code><hr />
</div> <br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code Java:</div>
                <hr /><code class="bbcode_code"><div class="java" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #7F0055; font-weight: bold;">class</span> Lokaal <span style="color: #7F0055; font-weight: bold;">extends</span> Main <span style="color: #000000;">&#123;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> nr<span style="color: #000000;">;</span>
    <span style="color: #7F0055; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> aantalCursisten<span style="color: #000000;">;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> Lokaal<span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> nr, Cursist cursist, Traject traject<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
        setNr<span style="color: #000000;">&#40;</span>nr<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>       
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> Lokaal<span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> nr, Instructeur instructeur<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
&nbsp;
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">int</span> getNr<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">return</span> nr<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">private</span> <span style="color: #7F0055; font-weight: bold;">void</span> setNr<span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> nr<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">this</span>.<span style="color: #000000;">nr</span> <span style="color: #000000;">=</span> nr<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #7F0055; font-weight: bold;">void</span> aantalCursisten<span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> aantal<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
        aantalCursisten <span style="color: #000000;">+=</span> aantal<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #7F0055; font-weight: bold;">void</span> toevoegen<span style="color: #000000;">&#40;</span>Cursist cursist<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
    <span style="color: #000000;">&#125;</span>
     <span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #7F0055; font-weight: bold;">void</span> remove<span style="color: #000000;">&#40;</span>Cursist cursist<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
    <span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #000000;">&#125;</span></pre></div></code><hr />
</div> <br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code Java:</div>
                <hr /><code class="bbcode_code"><div class="java" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #7F0055; font-weight: bold;">class</span> Instructeur <span style="color: #000000;">&#123;</span>
    <span style="color: #7F0055; font-weight: bold;">public</span> Instructeur<span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> naam, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> familieNaam<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        setNaam<span style="color: #000000;">&#40;</span>naam<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
        setFamilieNaam<span style="color: #000000;">&#40;</span>familieNaam<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> naam<span style="color: #000000;">;</span>
    <span style="color: #7F0055; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> familieNaam<span style="color: #000000;">;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> getNaam<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">return</span> naam<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> getFamilieNaam<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">return</span> familieNaam<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">private</span> <span style="color: #7F0055; font-weight: bold;">void</span> setFamilieNaam<span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> familieNaam<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">this</span>.<span style="color: #000000;">familieNaam</span> <span style="color: #000000;">=</span> familieNaam<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">private</span> <span style="color: #7F0055; font-weight: bold;">void</span> setNaam<span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> naam<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">this</span>.<span style="color: #000000;">naam</span> <span style="color: #000000;">=</span> naam<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>  
&nbsp;
&nbsp;
<span style="color: #000000;">&#125;</span></pre></div></code><hr />
</div> <br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code Java:</div>
                <hr /><code class="bbcode_code"><div class="java" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #7F0055; font-weight: bold;">class</span> Cursist  <span style="color: #000000;">&#123;</span>
    <span style="color: #7F0055; font-weight: bold;">public</span> Cursist<span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> naam, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> familieNaam<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        setNaam<span style="color: #000000;">&#40;</span>naam<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
        setFamilieNaam<span style="color: #000000;">&#40;</span>familieNaam<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
    <span style="color: #7F0055; font-weight: bold;">public</span> Cursist<span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> naam, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> familieNaam, Traject traject<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> naam<span style="color: #000000;">;</span>
    <span style="color: #7F0055; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> familieNaam<span style="color: #000000;">;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> getNaam<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">return</span> naam<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">private</span> <span style="color: #7F0055; font-weight: bold;">void</span> setNaam<span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> naam<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">this</span>.<span style="color: #000000;">naam</span> <span style="color: #000000;">=</span> naam<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> getFamilieNaam<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">return</span> familieNaam<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">private</span> <span style="color: #7F0055; font-weight: bold;">void</span> setFamilieNaam<span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> familieNaam<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">this</span>.<span style="color: #000000;">familieNaam</span> <span style="color: #000000;">=</span> familieNaam<span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #7F0055; font-weight: bold;">void</span> setTraject<span style="color: #000000;">&#40;</span>Traject traject<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
&nbsp;
    <span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #000000;">&#125;</span></pre></div></code><hr />
</div> </div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/collections-generics/">Collections and Generics</category>
			<dc:creator>profit7</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/collections-generics/29736-how-fix-class-program.html</guid>
		</item>
	</channel>
</rss>
