<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Display ArrayList data using Foreach in Java	</title>
	<atom:link href="https://krazytech.com/programs/arraylist-data-using-foreach/feed" rel="self" type="application/rss+xml" />
	<link>https://krazytech.com/programs/arraylist-data-using-foreach?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=arraylist-data-using-foreach</link>
	<description>A Technology Base</description>
	<lastBuildDate>Wed, 08 Mar 2023 12:20:39 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>
		By: onizuka		</title>
		<link>https://krazytech.com/programs/arraylist-data-using-foreach/comment-page-1#comment-26436</link>

		<dc:creator><![CDATA[onizuka]]></dc:creator>
		<pubDate>Sat, 18 Dec 2021 12:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=2075#comment-26436</guid>

					<description><![CDATA[hi, if i have a list of 50 items or employee, and need to display only 10 items in page, and if user want see another 10 items, need to click button to see next 10 items. how i can do that?]]></description>
			<content:encoded><![CDATA[<p>hi, if i have a list of 50 items or employee, and need to display only 10 items in page, and if user want see another 10 items, need to click button to see next 10 items. how i can do that?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Bandakkanavar		</title>
		<link>https://krazytech.com/programs/arraylist-data-using-foreach/comment-page-1#comment-26390</link>

		<dc:creator><![CDATA[Ravi Bandakkanavar]]></dc:creator>
		<pubDate>Wed, 22 Sep 2021 11:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=2075#comment-26390</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krazytech.com/programs/arraylist-data-using-foreach/comment-page-1#comment-26384&quot;&gt;vishal jat&lt;/a&gt;.

Hi Vishal,
Sorry. Your question is not very clear to me.
If you want to increase the ID by 1, you can do plus 1 and add the record to the list again.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krazytech.com/programs/arraylist-data-using-foreach/comment-page-1#comment-26384">vishal jat</a>.</p>
<p>Hi Vishal,<br />
Sorry. Your question is not very clear to me.<br />
If you want to increase the ID by 1, you can do plus 1 and add the record to the list again.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: vishal jat		</title>
		<link>https://krazytech.com/programs/arraylist-data-using-foreach/comment-page-1#comment-26384</link>

		<dc:creator><![CDATA[vishal jat]]></dc:creator>
		<pubDate>Tue, 14 Sep 2021 06:24:21 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=2075#comment-26384</guid>

					<description><![CDATA[if i want to edit ID by increases 1 so how can we do that?]]></description>
			<content:encoded><![CDATA[<p>if i want to edit ID by increases 1 so how can we do that?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Bandakkanavar		</title>
		<link>https://krazytech.com/programs/arraylist-data-using-foreach/comment-page-1#comment-26102</link>

		<dc:creator><![CDATA[Ravi Bandakkanavar]]></dc:creator>
		<pubDate>Sun, 26 Apr 2020 08:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=2075#comment-26102</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krazytech.com/programs/arraylist-data-using-foreach/comment-page-1#comment-26101&quot;&gt;Mayur dayal&lt;/a&gt;.

Please try the below method.
You can call this function in the Employee class.

&lt;code&gt;void display(List employees)
{
	for (Employee s : employees) //Iterates as long as there are elements in the list. An object s is created of type Employee class.
	{
		System.out.print(&quot;ID, Name and City of the employee are : &quot;);
		System.out.println(s.getId()+&quot; &quot;+s.getName()+&quot; &quot; +s.getAddress());
	}	
}&lt;/code&gt;

In Main class,
&lt;code&gt;Employee emp = new Employee(); 
emp.display(list)&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krazytech.com/programs/arraylist-data-using-foreach/comment-page-1#comment-26101">Mayur dayal</a>.</p>
<p>Please try the below method.<br />
You can call this function in the Employee class.</p>
<p><code>void display(List employees)<br />
{<br />
	for (Employee s : employees) //Iterates as long as there are elements in the list. An object s is created of type Employee class.<br />
	{<br />
		System.out.print("ID, Name and City of the employee are : ");<br />
		System.out.println(s.getId()+" "+s.getName()+" " +s.getAddress());<br />
	}<br />
}</code></p>
<p>In Main class,<br />
<code>Employee emp = new Employee();<br />
emp.display(list)</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mayur dayal		</title>
		<link>https://krazytech.com/programs/arraylist-data-using-foreach/comment-page-1#comment-26101</link>

		<dc:creator><![CDATA[Mayur dayal]]></dc:creator>
		<pubDate>Sat, 25 Apr 2020 14:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=2075#comment-26101</guid>

					<description><![CDATA[hey if we create a display() method in employee class. how can we call that method in foreach loop
in your java code]]></description>
			<content:encoded><![CDATA[<p>hey if we create a display() method in employee class. how can we call that method in foreach loop<br />
in your java code</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
