<?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 Programming HELP!!?</title>
	<atom:link href="http://www.qunck.com/the-wordgame/java-programming-help/feed" rel="self" type="application/rss+xml" />
	<link>http://www.qunck.com/the-wordgame/java-programming-help</link>
	<description></description>
	<lastBuildDate>Wed, 26 May 2010 13:47:59 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: deonejuan</title>
		<link>http://www.qunck.com/the-wordgame/java-programming-help/comment-page-1#comment-22</link>
		<dc:creator>deonejuan</dc:creator>
		<pubDate>Tue, 22 Sep 2009 01:57:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.qunck.com/the-wordgame/java-programming-help#comment-22</guid>
		<description>Yeah, I was going to say the same thing. You can do one thing.

String pet = JOptionPane.showInputDialog(&quot;Enter ...);
instead of two lines like you&#039;ve got it.
Do that for every dialog.

.showInputDialog( 1 arg) or optionally some more args
.showMessageDialog( null, 1 arg ) or optionally some more
the null is does Dialog belong to a JFrame or the Screen.
Normally, we check to see if the input was blank, but it is not required.

but a fun question. (Give points to above dude if you award points)&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>Yeah, I was going to say the same thing. You can do one thing.</p>
<p>String pet = JOptionPane.showInputDialog(&quot;Enter &#8230;);<br />
instead of two lines like you&#8217;ve got it.<br />
Do that for every dialog.</p>
<p>.showInputDialog( 1 arg) or optionally some more args<br />
.showMessageDialog( null, 1 arg ) or optionally some more<br />
the null is does Dialog belong to a JFrame or the Screen.<br />
Normally, we check to see if the input was blank, but it is not required.</p>
<p>but a fun question. (Give points to above dude if you award points)<br /><b>References : </b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ♥Neeraj Yadav♥</title>
		<link>http://www.qunck.com/the-wordgame/java-programming-help/comment-page-1#comment-21</link>
		<dc:creator>♥Neeraj Yadav♥</dc:creator>
		<pubDate>Tue, 22 Sep 2009 01:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.qunck.com/the-wordgame/java-programming-help#comment-21</guid>
		<description>Nothing was wrong buddy!

code was just right ,you needed to add sysout thats it..

Here&#039;s the code
import javax.swing.JOptionPane;

public class WordGame
{

public static void main(String[] args)
{

String name;
name= JOptionPane.showInputDialog(&quot;Enter your name&quot;);

String age;
age= JOptionPane.showInputDialog(&quot;Enter your age&quot;);

String city;
city= JOptionPane.showInputDialog(&quot;Enter the name of a city&quot;);

String college;
college= JOptionPane.showInputDialog(&quot;Enter the name of a college&quot;);

String profession;
profession= JOptionPane.showInputDialog(&quot;Enter profession&quot;);

String animal;
animal= JOptionPane.showInputDialog(&quot;Enter a type of animal&quot;);

String pet;
pet= JOptionPane.showInputDialog(&quot;Enter a pet name&quot;);

String str=&quot;There once was a person named &quot;+ name+
&quot; \n who lived in CITY. At the age of &quot;+age+
&quot;, &quot;+ name +&quot; went to college at \n&quot;+ college+&quot; .&quot;+ name
+&quot; graduated and went to work as a \n&quot;+profession+&quot; . Then, &quot;+ name
+&quot; adopted a(n) &quot;+ animal +&quot; \n named &quot;+ pet+
&quot;. They both lived happily ever after!&quot;;
JOptionPane.showMessageDialog(null, str);
}
}

Cheers:)&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>Nothing was wrong buddy!</p>
<p>code was just right ,you needed to add sysout thats it..</p>
<p>Here&#8217;s the code<br />
import javax.swing.JOptionPane;</p>
<p>public class WordGame<br />
{</p>
<p>public static void main(String[] args)<br />
{</p>
<p>String name;<br />
name= JOptionPane.showInputDialog(&quot;Enter your name&quot;);</p>
<p>String age;<br />
age= JOptionPane.showInputDialog(&quot;Enter your age&quot;);</p>
<p>String city;<br />
city= JOptionPane.showInputDialog(&quot;Enter the name of a city&quot;);</p>
<p>String college;<br />
college= JOptionPane.showInputDialog(&quot;Enter the name of a college&quot;);</p>
<p>String profession;<br />
profession= JOptionPane.showInputDialog(&quot;Enter profession&quot;);</p>
<p>String animal;<br />
animal= JOptionPane.showInputDialog(&quot;Enter a type of animal&quot;);</p>
<p>String pet;<br />
pet= JOptionPane.showInputDialog(&quot;Enter a pet name&quot;);</p>
<p>String str=&quot;There once was a person named &quot;+ name+<br />
&quot; \n who lived in CITY. At the age of &quot;+age+<br />
&quot;, &quot;+ name +&quot; went to college at \n&quot;+ college+&quot; .&quot;+ name<br />
+&quot; graduated and went to work as a \n&quot;+profession+&quot; . Then, &quot;+ name<br />
+&quot; adopted a(n) &quot;+ animal +&quot; \n named &quot;+ pet+<br />
&quot;. They both lived happily ever after!&quot;;<br />
JOptionPane.showMessageDialog(null, str);<br />
}<br />
}</p>
<p>Cheers:)<br /><b>References : </b></p>
]]></content:encoded>
	</item>
</channel>
</rss>
