<?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: Java switch/case statement syntax</title>
	<atom:link href="http://www.tech-recipes.com/rx/668/java-switchcase-statement-syntax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/668/java-switchcase-statement-syntax/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sat, 21 Nov 2009 20:38:45 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mohd</title>
		<link>http://www.tech-recipes.com/rx/668/java-switchcase-statement-syntax/comment-page-1/#comment-14886</link>
		<dc:creator>mohd</dc:creator>
		<pubDate>Tue, 08 Sep 2009 19:40:29 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14886</guid>
		<description>since you are using characters try using &#039;  &#039; (Single quotes) instead of using &quot; &quot;  double quotes</description>
		<content:encoded><![CDATA[<p>since you are using characters try using &#39;  &#39; (Single quotes) instead of using &#8221; &#8221;  double quotes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: estiven</title>
		<link>http://www.tech-recipes.com/rx/668/java-switchcase-statement-syntax/comment-page-1/#comment-14156</link>
		<dc:creator>estiven</dc:creator>
		<pubDate>Mon, 10 Aug 2009 23:55:10 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14156</guid>
		<description>You cannot use strings on Swithc, you can only use int.  So, it would be a better idea to capture the lettes ascii code and evaluate your switch accordingly.</description>
		<content:encoded><![CDATA[<p>You cannot use strings on Swithc, you can only use int.  So, it would be a better idea to capture the lettes ascii code and evaluate your switch accordingly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ktk</title>
		<link>http://www.tech-recipes.com/rx/668/java-switchcase-statement-syntax/comment-page-1/#comment-13950</link>
		<dc:creator>ktk</dc:creator>
		<pubDate>Sun, 02 Aug 2009 13:25:01 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-13950</guid>
		<description>import java.io.*;&lt;br&gt;import java.net.*;&lt;br&gt;public class SvowelDPS&lt;br&gt; {&lt;br&gt;	public static void main(String args[]) throws Exception&lt;br&gt;	{&lt;br&gt;		DatagramSocket ds=new DatagramSocket(40000);&lt;br&gt;		byte rb[]=new byte[100];&lt;br&gt;		System.out.println(&quot;Connection&quot;);&lt;br&gt;		&lt;br&gt;		DatagramPacket dp=new DatagramPacket(rb,rb.length);&lt;br&gt;		ds.receive(dp);&lt;br&gt;		System.out.println(&quot;Receive Data:&quot;+new String(dp.getData()));&lt;br&gt;		String str=new String(dp.getData());&lt;br&gt;		String res=&quot;&quot;;&lt;br&gt;		str=str.trim();&lt;br&gt;		switch(str)	//error on this point.How can i do?&lt;br&gt;		{&lt;br&gt;			case &quot;a&quot;:&lt;br&gt;				res=(&quot;Vowel&quot;);&lt;br&gt;				break;&lt;br&gt;			case &quot;A&quot;:&lt;br&gt;				res=(&quot;Vowel&quot;);&lt;br&gt;				break;&lt;br&gt;			case &quot;e&quot;:&lt;br&gt;				res=(&quot;Vowel&quot;);			&lt;br&gt;				break;&lt;br&gt;			case &quot;E&quot;:&lt;br&gt;				res=(&quot;Vowel&quot;);&lt;br&gt;				break;&lt;br&gt;			case &quot;i&quot;:&lt;br&gt;				res=(&quot;Vowel&quot;);&lt;br&gt;				break;&lt;br&gt;			case &quot;I&quot;:&lt;br&gt;				res=(&quot;Vowel&quot;);&lt;br&gt;				break;&lt;br&gt;			case &quot;o&quot;:&lt;br&gt;				res=(&quot;Vowel&quot;);&lt;br&gt;				break;&lt;br&gt;			case &quot;O&quot;:&lt;br&gt;				res=(&quot;Vowel&quot;);&lt;br&gt;				break;&lt;br&gt;			case &quot;U&quot;:&lt;br&gt;				res=(&quot;Vowel&quot;);&lt;br&gt;				break;&lt;br&gt;			case &quot;o&quot;:&lt;br&gt;				res=(&quot;Vowel&quot;);&lt;br&gt;				break;&lt;br&gt;			default:&lt;br&gt;				res=(&quot;Not Vowel&quot;);&lt;br&gt;				break;&lt;br&gt;		}&lt;br&gt;		&lt;br&gt;		InetAddress cipadd=dp.getAddress();&lt;br&gt;		int cport=dp.getPort();&lt;br&gt;		byte sb[]=new byte[100];	&lt;br&gt;		sb=res.getBytes();&lt;br&gt;		DatagramPacket dpsend=new DatagramPacket(sb,sb.length,cipadd,cport);	&lt;br&gt;		ds.send(dpsend);&lt;br&gt;		System.out.println(&quot;Data send&quot;)	;&lt;br&gt;	}&lt;br&gt;    &lt;br&gt;    &lt;br&gt;}</description>
		<content:encoded><![CDATA[<p>import java.io.*;<br />import java.net.*;<br />public class SvowelDPS<br /> {<br />	public static void main(String args[]) throws Exception<br />	{<br />		DatagramSocket ds=new DatagramSocket(40000);<br />		byte rb[]=new byte[100];<br />		System.out.println(&#8221;Connection&#8221;);</p>
<p>		DatagramPacket dp=new DatagramPacket(rb,rb.length);<br />		ds.receive(dp);<br />		System.out.println(&#8221;Receive Data:&#8221;+new String(dp.getData()));<br />		String str=new String(dp.getData());<br />		String res=&#8221;";<br />		str=str.trim();<br />		switch(str)	//error on this point.How can i do?<br />		{<br />			case &#8220;a&#8221;:<br />				res=(&#8221;Vowel&#8221;);<br />				break;<br />			case &#8220;A&#8221;:<br />				res=(&#8221;Vowel&#8221;);<br />				break;<br />			case &#8220;e&#8221;:<br />				res=(&#8221;Vowel&#8221;);			<br />				break;<br />			case &#8220;E&#8221;:<br />				res=(&#8221;Vowel&#8221;);<br />				break;<br />			case &#8220;i&#8221;:<br />				res=(&#8221;Vowel&#8221;);<br />				break;<br />			case &#8220;I&#8221;:<br />				res=(&#8221;Vowel&#8221;);<br />				break;<br />			case &#8220;o&#8221;:<br />				res=(&#8221;Vowel&#8221;);<br />				break;<br />			case &#8220;O&#8221;:<br />				res=(&#8221;Vowel&#8221;);<br />				break;<br />			case &#8220;U&#8221;:<br />				res=(&#8221;Vowel&#8221;);<br />				break;<br />			case &#8220;o&#8221;:<br />				res=(&#8221;Vowel&#8221;);<br />				break;<br />			default:<br />				res=(&#8221;Not Vowel&#8221;);<br />				break;<br />		}</p>
<p>		InetAddress cipadd=dp.getAddress();<br />		int cport=dp.getPort();<br />		byte sb[]=new byte[100];	<br />		sb=res.getBytes();<br />		DatagramPacket dpsend=new DatagramPacket(sb,sb.length,cipadd,cport);	<br />		ds.send(dpsend);<br />		System.out.println(&#8221;Data send&#8221;)	;<br />	}</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hemanthjava</title>
		<link>http://www.tech-recipes.com/rx/668/java-switchcase-statement-syntax/comment-page-1/#comment-13788</link>
		<dc:creator>hemanthjava</dc:creator>
		<pubDate>Sat, 25 Jul 2009 19:47:42 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-13788</guid>
		<description>Thank you. This program will help me a good deal.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hemanth&lt;br&gt;&lt;a href=&quot;http://www.seofreelancing.com&quot; rel=&quot;nofollow&quot;&gt;http://www.seofreelancing.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Thank you. This program will help me a good deal.</p>
<p>Regards,<br />Hemanth<br /><a href="http://www.seofreelancing.com" rel="nofollow">http://www.seofreelancing.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akila</title>
		<link>http://www.tech-recipes.com/rx/668/java-switchcase-statement-syntax/comment-page-1/#comment-13583</link>
		<dc:creator>Akila</dc:creator>
		<pubDate>Fri, 17 Jul 2009 07:37:32 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-13583</guid>
		<description>Inside the switch case program is it possible to access another program? how?</description>
		<content:encoded><![CDATA[<p>Inside the switch case program is it possible to access another program? how?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irene</title>
		<link>http://www.tech-recipes.com/rx/668/java-switchcase-statement-syntax/comment-page-1/#comment-12621</link>
		<dc:creator>Irene</dc:creator>
		<pubDate>Thu, 18 Jun 2009 02:57:41 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-12621</guid>
		<description>Im a new learner of java. This example of switch case helped me to understand the syntax clearly. The program also provided more knowledge.  I will visit this site whenever i get doubt.Thanks. Good work.</description>
		<content:encoded><![CDATA[<p>Im a new learner of java. This example of switch case helped me to understand the syntax clearly. The program also provided more knowledge.  I will visit this site whenever i get doubt.Thanks. Good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manish_kashyap</title>
		<link>http://www.tech-recipes.com/rx/668/java-switchcase-statement-syntax/comment-page-1/#comment-8666</link>
		<dc:creator>manish_kashyap</dc:creator>
		<pubDate>Thu, 19 Feb 2009 10:24:34 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-8666</guid>
		<description>please send  me &lt;br&gt; what&#039;s new in java &lt;br&gt;also send java tutorials &lt;br&gt;and java jobs</description>
		<content:encoded><![CDATA[<p>please send  me <br /> what&#39;s new in java <br />also send java tutorials <br />and java jobs</p>
]]></content:encoded>
	</item>
</channel>
</rss>
