<?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 &#8211; How to convert String into Array</title>
	<atom:link href="http://www.easywayserver.com/blog/java-how-to-convert-string-into-array/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.easywayserver.com/blog/java-how-to-convert-string-into-array/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 15 Jan 2012 15:24:27 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Prajakta</title>
		<link>http://www.easywayserver.com/blog/java-how-to-convert-string-into-array/comment-page-1/#comment-55039</link>
		<dc:creator>Prajakta</dc:creator>
		<pubDate>Sat, 14 Jan 2012 14:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.easywayserver.com/blog/java-how-to-convert-string-into-array/#comment-55039</guid>
		<description>No ....it works......  :-)
Thank you</description>
		<content:encoded><![CDATA[<p>No &#8230;.it works&#8230;&#8230;  <img src='http://www.easywayserver.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prajakta</title>
		<link>http://www.easywayserver.com/blog/java-how-to-convert-string-into-array/comment-page-1/#comment-55031</link>
		<dc:creator>Prajakta</dc:creator>
		<pubDate>Sat, 14 Jan 2012 13:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.easywayserver.com/blog/java-how-to-convert-string-into-array/#comment-55031</guid>
		<description>Your code shows Some characters cannot be mapped using &quot;Cp1252&quot; character encoding.
Either change the encoding or remove the characters which are not supported by the &quot;Cp1252&quot; character encoding</description>
		<content:encoded><![CDATA[<p>Your code shows Some characters cannot be mapped using &#8220;Cp1252&#8243; character encoding.<br />
Either change the encoding or remove the characters which are not supported by the &#8220;Cp1252&#8243; character encoding</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek</title>
		<link>http://www.easywayserver.com/blog/java-how-to-convert-string-into-array/comment-page-1/#comment-26913</link>
		<dc:creator>Abhishek</dc:creator>
		<pubDate>Mon, 05 Sep 2011 12:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.easywayserver.com/blog/java-how-to-convert-string-into-array/#comment-26913</guid>
		<description>Here is the code to convert number to word format in java as per the Indian number system through user input. It works up to 999999999.

import java.util.*;
public class NumtoWord
{
public static void main(String[] args)
{
String a;
Scanner s = new Scanner(System.in);
System.out.print(&quot;Enter a Number : &quot;);
a = s.next();
int b = a.length();
String str[] = {&quot;1&quot;,&quot;One&quot;,&quot;2&quot;,&quot;Two&quot;,&quot;3&quot;,&quot;Three&quot;,&quot;4&quot;,&quot;Four&quot;,&quot;5&quot;,&quot;Five&quot;,&quot;6&quot;,&quot;Six&quot;,
&quot;7&quot;,&quot;Seven&quot;,&quot;8&quot;,&quot;Eight&quot;,&quot;9&quot;,&quot;Nine&quot;,&quot;10&quot;,&quot;Ten&quot;,&quot;11&quot;,&quot;Eleven&quot;,&quot;12&quot;,&quot;Twelve&quot;,&quot;13&quot;,
&quot;Thirteen&quot;,&quot;14&quot;,&quot;Forteen&quot;,&quot;15&quot;,&quot;Fifteen&quot;,&quot;16&quot;,&quot;Sixteen&quot;,&quot;17&quot;,&quot;Seventeen&quot;,
&quot;18&quot;,&quot;Eighteen&quot;,&quot;19&quot;,&quot;Nineteen&quot;,&quot;20&quot;,&quot;Twenty&quot;,&quot;30&quot;,&quot;Thirty&quot;,&quot;40&quot;,&quot;Fourty&quot;,
&quot;50&quot;,&quot;Fifty&quot;,&quot;60&quot;,&quot;Sixty&quot;,&quot;70&quot;,&quot;Seventy&quot;,&quot;80&quot;,&quot;Eighty&quot;,&quot;90&quot;,&quot;Ninty&quot;,&quot;100&quot;,
&quot;Hundred&quot;};
System.out.println(&quot;&quot;);
if (b==9)
{
String s1= a.substring(0,1);
String s2= a.substring(1,2);
String s3= a.substring(2,3);
String s4= a.substring(3,4);
String s5= a.substring(4,5);
String s6= a.substring(5,6);
String s7= a.substring(6,7);
String s8= a.substring(7,8);
String s9= a.substring(8,9);
String s10= a.substring(0,2);
String s11= a.substring(2,4);
String s12= a.substring(4,6);
String s14= a.substring(7,9);
{
if (s10.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s1.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s10))
System.out.print(&quot;\n&quot; + str[r+1] + &quot; Crore &quot;);
}
else
{
{
for (int i=0;i&lt;=40;i++)
if (str[i].equals(s1))
System.out.print(&quot;\n&quot; + str[i+37] + &quot; &quot;);
}
{
if(s2.equals(&quot;0&quot;))
{
System.out.print(&quot;Crore &quot;);
}
else
for (int j=0;j&lt;=40;j++)
{
if (str[j].equals(s2))
System.out.print(str[j+1] + &quot; Crore &quot;);
}
}
}
}
{
if (s11.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s3.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s11))
System.out.print(str[r+1] + &quot; Lacks &quot;);
}
else
{
{
for (int k=0;k&lt;=38;k++)
if (str[k].equals(s3))
System.out.print(str[k+37] + &quot; &quot;);
}
{
if(s4.equals(&quot;0&quot;))
{
System.out.print(&quot;Lacks &quot;);
}
else
for (int l=0;l&lt;=38;l++)
{
if (str[l].equals(s4))
System.out.print(str[l+1] + &quot; Lacks &quot;);
}
}
}
}
{
if (s12.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s5.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s12))
System.out.print(str[r+1] + &quot; Thousand &quot;);
}
else
{
{
for (int m=0;m&lt;=38;m++)
if (str[m].equals(s5))
System.out.print(str[m+37] + &quot; &quot;);
}
{
if(s6.equals(&quot;0&quot;))
{
System.out.print(&quot;Thousand &quot;);
}
else
for (int n=0;n&lt;=38;n++)
{
if (str[n].equals(s6))
System.out.print(str[n+1] + &quot; Thousand &quot;);
}
}
}
}
{
for (int o=0;o&lt;=40;o++)
if (str[o].equals(s7))
System.out.print(str[o+1] + &quot; Hundred &quot;);
}
{
if (s14.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s8.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s14))
System.out.print(str[r+1]);
System.out.print(&quot;\n&quot;);
}
else
{
for (int p=0;p&lt;=40;p++)
if (str[p].equals(s8))
System.out.print(str[p+37]);
for (int q=0;q&lt;=40;q++)
{
if (str[q].equals(s9))
System.out.print(&quot; &quot; + str[q+1]);
}
}
System.out.print(&quot;\n&quot;);
}
}
else if (b==8)
{
String s1= a.substring(0,1);
String s2= a.substring(1,2);
String s3= a.substring(2,3);
String s4= a.substring(3,4);
String s5= a.substring(4,5);
String s6= a.substring(5,6);
String s7= a.substring(6,7);
String s8= a.substring(7,8);
String s10= a.substring(1,3);
String s11= a.substring(3,5);
String s12= a.substring(6,8);
{
if (s1.equals(&quot;0&quot;))
System.out.print(&quot;&quot;);
else
for (int i=0;i&lt;=40;i++)
if (str[i].equals(s1))
System.out.print(&quot;\n&quot; + str[i+1] + &quot; Crore &quot;);
}
{
if (s10.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s2.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s10))
System.out.print(str[r+1] + &quot; Lacks &quot;);
}
else
{
{
for (int k=0;k&lt;=38;k++)
if (str[k].equals(s2))
System.out.print(str[k+37] + &quot; &quot;);
}
{
if(s3.equals(&quot;0&quot;))
{
System.out.print(&quot;Lacks &quot;);
}
else
for (int l=0;l&lt;=38;l++)
{
if (str[l].equals(s3))
System.out.print(str[l+1] + &quot; Lacks &quot;);
}
}
}
}
{
if (s11.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s4.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s11))
System.out.print(str[r+1] + &quot; Thousand &quot;);
}
else
{
{
for (int m=0;m&lt;=38;m++)
if (str[m].equals(s4))
System.out.print(str[m+37] + &quot; &quot;);
}
{
if(s5.equals(&quot;0&quot;))
{
System.out.print(&quot;Thousand &quot;);
}
else
for (int n=0;n&lt;=38;n++)
{
if (str[n].equals(s5))
System.out.print(str[n+1] + &quot; Thousand &quot;);
}
}
}
}
{
for (int o=0;o&lt;=40;o++)
if (str[o].equals(s6))
System.out.print(str[o+1] + &quot; Hundred &quot;);
}
{
if (s12.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s7.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s12))
System.out.print(str[r+1]);
System.out.print(&quot;\n&quot;);
}
else
{
for (int p=0;p&lt;=40;p++)
if (str[p].equals(s7))
System.out.print(str[p+37]);
for (int q=0;q&lt;=40;q++)
{
if (str[q].equals(s8))
System.out.print(&quot; &quot; + str[q+1]);
}
}
System.out.print(&quot;\n&quot;);
}
}
else if (b==7)
{
String s1= a.substring(0,1);
String s2= a.substring(1,2);
String s3= a.substring(2,3);
String s4= a.substring(3,4);
String s5= a.substring(4,5);
String s6= a.substring(5,6);
String s7= a.substring(6,7);
String s10= a.substring(0,2);
String s11= a.substring(2,4);
String s12= a.substring(5,7);
{
if (s10.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s1.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s10))
System.out.print(str[r+1] + &quot; Lacks &quot;);
}
else
{
{
for (int k=0;k&lt;=38;k++)
if (str[k].equals(s1))
System.out.print(str[k+37] + &quot; &quot;);
}
{
if(s2.equals(&quot;0&quot;))
{
System.out.print(&quot;Lacks &quot;);
}
else
for (int l=0;l&lt;=38;l++)
{
if (str[l].equals(s2))
System.out.print(str[l+1] + &quot; Lacks &quot;);
}
}
}
}
{
if (s11.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s3.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s11))
System.out.print(str[r+1] + &quot; Thousand &quot;);
}
else
{
{
for (int m=0;m&lt;=38;m++)
if (str[m].equals(s3))
System.out.print(str[m+37] + &quot; &quot;);
}
{
if(s4.equals(&quot;0&quot;))
{
System.out.print(&quot;Thousand &quot;);
}
else
for (int n=0;n&lt;=38;n++)
{
if (str[n].equals(s4))
System.out.print(str[n+1] + &quot; Thousand &quot;);
}
}
}
}
{
for (int o=0;o&lt;=40;o++)
if (str[o].equals(s5))
System.out.print(str[o+1] + &quot; Hundred &quot;);
}
{
if (s12.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s6.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s12))
System.out.print(str[r+1]);
System.out.print(&quot;\n&quot;);
}
else
{
for (int p=0;p&lt;=40;p++)
if (str[p].equals(s6))
System.out.print(str[p+37]);
for (int q=0;q&lt;=40;q++)
{
if (str[q].equals(s7))
System.out.print(&quot; &quot; + str[q+1]);
}
}
System.out.print(&quot;\n&quot;);
}
}
else if (b==6)
{
String s1= a.substring(0,1);
String s2= a.substring(1,2);
String s3= a.substring(2,3);
String s4= a.substring(3,4);
String s5= a.substring(4,5);
String s6= a.substring(5,6);
String s10= a.substring(1,3);
String s11= a.substring(4,6);

{
if(s1.equals(&quot;0&quot;))
System.out.print(&quot;&quot;);
else
{
for (int j=0;j&lt;=40;j++)
if (str[j].equals(s1))
System.out.print(str[j+1] + &quot; Lacks &quot;);
}
}
{
if (s10.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s2.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s10))
System.out.print(str[r+1] + &quot; Thousand &quot;);
}
else
{
{
for (int m=0;m&lt;=40;m++)
if (str[m].equals(s2))
System.out.print(str[m+37] + &quot; &quot;);
}
{
if(s3.equals(&quot;0&quot;))
{
System.out.print(&quot;Thousand &quot;);
}
else
for (int n=0;n&lt;=38;n++)
{
if (str[n].equals(s3))
System.out.print(str[n+1] + &quot; Thousand &quot;);
}
}
}
}
{
if(s4.equals(&quot;0&quot;))
System.out.print(&quot;&quot;);
else
{
for (int o=0;o&lt;=40;o++)
if (str[o].equals(s4))
System.out.print(str[o+1] + &quot; Hundred &quot;);
}
}
{
if (s11.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s5.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s11))
System.out.print(str[r+1]);
System.out.print(&quot;\n&quot;);
}
else
{
for (int p=0;p&lt;=40;p++)
if (str[p].equals(s5))
System.out.print(str[p+37]);
for (int q=0;q&lt;=40;q++)
{
if (str[q].equals(s6))
System.out.print(&quot; &quot; + str[q+1]);
}
}
System.out.print(&quot;\n&quot;);
}
}
else if (b==5)
{
String s1= a.substring(0,1);
String s2= a.substring(1,2);
String s3= a.substring(2,3);
String s4= a.substring(3,4);
String s5= a.substring(4,5);
String s10= a.substring(0,2);
String s11= a.substring(3,5);
{
if (s10.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s1.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s10))
System.out.print(str[r+1] + &quot; Thousand &quot;);
}
else
{
{
for (int m=0;m&lt;=38;m++)
if (str[m].equals(s1))
System.out.print(str[m+37] + &quot; &quot;);
}
{
if(s2.equals(&quot;0&quot;))
{
System.out.print(&quot;Thousand &quot;);
}
else
for (int n=0;n&lt;=38;n++)
{
if (str[n].equals(s2))
System.out.print(str[n+1] + &quot; Thousand &quot;);
}
}
}
}
{
for (int o=0;o&lt;=40;o++)
if (str[o].equals(s3))
System.out.print(str[o+1] + &quot; Hundred &quot;);
}
{
if (s11.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s4.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s11))
System.out.print(str[r+1]);
System.out.print(&quot;\n&quot;);
}
else
{
for (int p=0;p&lt;=40;p++)
if (str[p].equals(s4))
System.out.print(str[p+37]);
for (int q=0;q&lt;=40;q++)
{
if (str[q].equals(s5))
System.out.print(&quot; &quot; + str[q+1]);
}
}
System.out.print(&quot;\n&quot;);
}
}
else if (b==4)
{
String s1= a.substring(0,1);
String s2= a.substring(1,2);
String s3= a.substring(2,3);
String s4= a.substring(3,4);
String s10= a.substring(2,4);
{
if(s1.equals(&quot;0&quot;))
System.out.print(&quot;&quot;);
else
{
for (int j=0;j&lt;=40;j++)
if (str[j].equals(s1))
System.out.print(str[j+1] + &quot; Thousand &quot;);
}
}
{
if(s2.equals(&quot;0&quot;))
System.out.print(&quot;&quot;);
else
{
for (int o=0;o&lt;=40;o++)
if (str[o].equals(s2))
System.out.print(str[o+1] + &quot; Hundred &quot;);
}
}
{
if (s10.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s3.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s10))
System.out.print(str[r+1]);
System.out.print(&quot;\n&quot;);
}
else
{
for (int p=0;p&lt;=40;p++)
if (str[p].equals(s3))
System.out.print(str[p+37]);
for (int q=0;q&lt;=40;q++)
{
if (str[q].equals(s4))
System.out.print(&quot; &quot; + str[q+1]);
}
}
System.out.print(&quot;\n&quot;);
}
}
else if (b==3)
{
String s1= a.substring(0,1);
String s2= a.substring(1,2);
String s3= a.substring(2,3);
String s10= a.substring(1,3);
{
if(s1.equals(&quot;0&quot;))
System.out.print(&quot;&quot;);
else
{
for (int o=0;o&lt;=40;o++)
if (str[o].equals(s1))
System.out.print(str[o+1] + &quot; Hundred &quot;);
}
}
{
if (s10.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s2.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s10))
System.out.print(str[r+1]);
System.out.print(&quot;\n&quot;);
}
else
{
for (int p=0;p&lt;=40;p++)
if (str[p].equals(s2))
System.out.print(str[p+37]);
for (int q=0;q&lt;=40;q++)
{
if (str[q].equals(s3))
System.out.print(&quot; &quot; + str[q+1]);
}
}
System.out.print(&quot;\n&quot;);
}
}
else if (b==2)
{
String s1= a.substring(0,1);
String s2= a.substring(1,2);
String s10= a.substring(0,2);
{
if (s10.equals(&quot;00&quot;))
System.out.print(&quot;&quot;);
else if (s1.equals(&quot;1&quot;))
{
for (int r=0;r&lt;=40;r++)
if (str[r].equals(s10))
System.out.print(str[r+1]);
System.out.print(&quot;\n&quot;);
}
else
{
for (int p=0;p&lt;=40;p++)
if (str[p].equals(s1))
System.out.print(str[p+37]);
for (int q=0;q&lt;=40;q++)
{
if (str[q].equals(s2))
System.out.print(&quot; &quot; + str[q+1]);
}
}
System.out.print(&quot;\n&quot;);
}
}
else if (b==1)
{
String s1= a.substring(0,1);
for (int q=0;q&lt;=40;q++)
if (str[q].equals(s1))
System.out.print(&quot; &quot; + str[q+1]);
}
System.out.println(&quot;\n&quot;);
}
}
// By Abhishek Singh (abhishek_singh_rajawat@yahoo.co.in).</description>
		<content:encoded><![CDATA[<p>Here is the code to convert number to word format in java as per the Indian number system through user input. It works up to 999999999.</p>
<p>import java.util.*;<br />
public class NumtoWord<br />
{<br />
public static void main(String[] args)<br />
{<br />
String a;<br />
Scanner s = new Scanner(System.in);<br />
System.out.print(&#8221;Enter a Number : &#8220;);<br />
a = s.next();<br />
int b = a.length();<br />
String str[] = {&#8221;1&#8243;,&#8221;One&#8221;,&#8221;2&#8243;,&#8221;Two&#8221;,&#8221;3&#8243;,&#8221;Three&#8221;,&#8221;4&#8243;,&#8221;Four&#8221;,&#8221;5&#8243;,&#8221;Five&#8221;,&#8221;6&#8243;,&#8221;Six&#8221;,<br />
&#8220;7&#8243;,&#8221;Seven&#8221;,&#8221;8&#8243;,&#8221;Eight&#8221;,&#8221;9&#8243;,&#8221;Nine&#8221;,&#8221;10&#8243;,&#8221;Ten&#8221;,&#8221;11&#8243;,&#8221;Eleven&#8221;,&#8221;12&#8243;,&#8221;Twelve&#8221;,&#8221;13&#8243;,<br />
&#8220;Thirteen&#8221;,&#8221;14&#8243;,&#8221;Forteen&#8221;,&#8221;15&#8243;,&#8221;Fifteen&#8221;,&#8221;16&#8243;,&#8221;Sixteen&#8221;,&#8221;17&#8243;,&#8221;Seventeen&#8221;,<br />
&#8220;18&#8243;,&#8221;Eighteen&#8221;,&#8221;19&#8243;,&#8221;Nineteen&#8221;,&#8221;20&#8243;,&#8221;Twenty&#8221;,&#8221;30&#8243;,&#8221;Thirty&#8221;,&#8221;40&#8243;,&#8221;Fourty&#8221;,<br />
&#8220;50&#8243;,&#8221;Fifty&#8221;,&#8221;60&#8243;,&#8221;Sixty&#8221;,&#8221;70&#8243;,&#8221;Seventy&#8221;,&#8221;80&#8243;,&#8221;Eighty&#8221;,&#8221;90&#8243;,&#8221;Ninty&#8221;,&#8221;100&#8243;,<br />
&#8220;Hundred&#8221;};<br />
System.out.println(&#8221;");<br />
if (b==9)<br />
{<br />
String s1= a.substring(0,1);<br />
String s2= a.substring(1,2);<br />
String s3= a.substring(2,3);<br />
String s4= a.substring(3,4);<br />
String s5= a.substring(4,5);<br />
String s6= a.substring(5,6);<br />
String s7= a.substring(6,7);<br />
String s8= a.substring(7,8);<br />
String s9= a.substring(8,9);<br />
String s10= a.substring(0,2);<br />
String s11= a.substring(2,4);<br />
String s12= a.substring(4,6);<br />
String s14= a.substring(7,9);<br />
{<br />
if (s10.equals(&#8221;00&#8243;))<br />
System.out.print(&#8221;");<br />
else if (s1.equals(&#8221;1&#8243;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s10))<br />
System.out.print(&quot;\n&quot; + str[r+1] + &quot; Crore &quot;);<br />
}<br />
else<br />
{<br />
{<br />
for (int i=0;i&lt;=40;i++)<br />
if (str[i].equals(s1))<br />
System.out.print(&quot;\n&quot; + str[i+37] + &quot; &quot;);<br />
}<br />
{<br />
if(s2.equals(&quot;0&quot;))<br />
{<br />
System.out.print(&quot;Crore &quot;);<br />
}<br />
else<br />
for (int j=0;j&lt;=40;j++)<br />
{<br />
if (str[j].equals(s2))<br />
System.out.print(str[j+1] + &quot; Crore &quot;);<br />
}<br />
}<br />
}<br />
}<br />
{<br />
if (s11.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s3.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s11))<br />
System.out.print(str[r+1] + &quot; Lacks &quot;);<br />
}<br />
else<br />
{<br />
{<br />
for (int k=0;k&lt;=38;k++)<br />
if (str[k].equals(s3))<br />
System.out.print(str[k+37] + &quot; &quot;);<br />
}<br />
{<br />
if(s4.equals(&quot;0&quot;))<br />
{<br />
System.out.print(&quot;Lacks &quot;);<br />
}<br />
else<br />
for (int l=0;l&lt;=38;l++)<br />
{<br />
if (str[l].equals(s4))<br />
System.out.print(str[l+1] + &quot; Lacks &quot;);<br />
}<br />
}<br />
}<br />
}<br />
{<br />
if (s12.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s5.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s12))<br />
System.out.print(str[r+1] + &quot; Thousand &quot;);<br />
}<br />
else<br />
{<br />
{<br />
for (int m=0;m&lt;=38;m++)<br />
if (str[m].equals(s5))<br />
System.out.print(str[m+37] + &quot; &quot;);<br />
}<br />
{<br />
if(s6.equals(&quot;0&quot;))<br />
{<br />
System.out.print(&quot;Thousand &quot;);<br />
}<br />
else<br />
for (int n=0;n&lt;=38;n++)<br />
{<br />
if (str[n].equals(s6))<br />
System.out.print(str[n+1] + &quot; Thousand &quot;);<br />
}<br />
}<br />
}<br />
}<br />
{<br />
for (int o=0;o&lt;=40;o++)<br />
if (str[o].equals(s7))<br />
System.out.print(str[o+1] + &quot; Hundred &quot;);<br />
}<br />
{<br />
if (s14.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s8.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s14))<br />
System.out.print(str[r+1]);<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
else<br />
{<br />
for (int p=0;p&lt;=40;p++)<br />
if (str[p].equals(s8))<br />
System.out.print(str[p+37]);<br />
for (int q=0;q&lt;=40;q++)<br />
{<br />
if (str[q].equals(s9))<br />
System.out.print(&quot; &quot; + str[q+1]);<br />
}<br />
}<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
}<br />
else if (b==8)<br />
{<br />
String s1= a.substring(0,1);<br />
String s2= a.substring(1,2);<br />
String s3= a.substring(2,3);<br />
String s4= a.substring(3,4);<br />
String s5= a.substring(4,5);<br />
String s6= a.substring(5,6);<br />
String s7= a.substring(6,7);<br />
String s8= a.substring(7,8);<br />
String s10= a.substring(1,3);<br />
String s11= a.substring(3,5);<br />
String s12= a.substring(6,8);<br />
{<br />
if (s1.equals(&quot;0&quot;))<br />
System.out.print(&quot;&quot;);<br />
else<br />
for (int i=0;i&lt;=40;i++)<br />
if (str[i].equals(s1))<br />
System.out.print(&quot;\n&quot; + str[i+1] + &quot; Crore &quot;);<br />
}<br />
{<br />
if (s10.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s2.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s10))<br />
System.out.print(str[r+1] + &quot; Lacks &quot;);<br />
}<br />
else<br />
{<br />
{<br />
for (int k=0;k&lt;=38;k++)<br />
if (str[k].equals(s2))<br />
System.out.print(str[k+37] + &quot; &quot;);<br />
}<br />
{<br />
if(s3.equals(&quot;0&quot;))<br />
{<br />
System.out.print(&quot;Lacks &quot;);<br />
}<br />
else<br />
for (int l=0;l&lt;=38;l++)<br />
{<br />
if (str[l].equals(s3))<br />
System.out.print(str[l+1] + &quot; Lacks &quot;);<br />
}<br />
}<br />
}<br />
}<br />
{<br />
if (s11.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s4.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s11))<br />
System.out.print(str[r+1] + &quot; Thousand &quot;);<br />
}<br />
else<br />
{<br />
{<br />
for (int m=0;m&lt;=38;m++)<br />
if (str[m].equals(s4))<br />
System.out.print(str[m+37] + &quot; &quot;);<br />
}<br />
{<br />
if(s5.equals(&quot;0&quot;))<br />
{<br />
System.out.print(&quot;Thousand &quot;);<br />
}<br />
else<br />
for (int n=0;n&lt;=38;n++)<br />
{<br />
if (str[n].equals(s5))<br />
System.out.print(str[n+1] + &quot; Thousand &quot;);<br />
}<br />
}<br />
}<br />
}<br />
{<br />
for (int o=0;o&lt;=40;o++)<br />
if (str[o].equals(s6))<br />
System.out.print(str[o+1] + &quot; Hundred &quot;);<br />
}<br />
{<br />
if (s12.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s7.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s12))<br />
System.out.print(str[r+1]);<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
else<br />
{<br />
for (int p=0;p&lt;=40;p++)<br />
if (str[p].equals(s7))<br />
System.out.print(str[p+37]);<br />
for (int q=0;q&lt;=40;q++)<br />
{<br />
if (str[q].equals(s8))<br />
System.out.print(&quot; &quot; + str[q+1]);<br />
}<br />
}<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
}<br />
else if (b==7)<br />
{<br />
String s1= a.substring(0,1);<br />
String s2= a.substring(1,2);<br />
String s3= a.substring(2,3);<br />
String s4= a.substring(3,4);<br />
String s5= a.substring(4,5);<br />
String s6= a.substring(5,6);<br />
String s7= a.substring(6,7);<br />
String s10= a.substring(0,2);<br />
String s11= a.substring(2,4);<br />
String s12= a.substring(5,7);<br />
{<br />
if (s10.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s1.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s10))<br />
System.out.print(str[r+1] + &quot; Lacks &quot;);<br />
}<br />
else<br />
{<br />
{<br />
for (int k=0;k&lt;=38;k++)<br />
if (str[k].equals(s1))<br />
System.out.print(str[k+37] + &quot; &quot;);<br />
}<br />
{<br />
if(s2.equals(&quot;0&quot;))<br />
{<br />
System.out.print(&quot;Lacks &quot;);<br />
}<br />
else<br />
for (int l=0;l&lt;=38;l++)<br />
{<br />
if (str[l].equals(s2))<br />
System.out.print(str[l+1] + &quot; Lacks &quot;);<br />
}<br />
}<br />
}<br />
}<br />
{<br />
if (s11.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s3.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s11))<br />
System.out.print(str[r+1] + &quot; Thousand &quot;);<br />
}<br />
else<br />
{<br />
{<br />
for (int m=0;m&lt;=38;m++)<br />
if (str[m].equals(s3))<br />
System.out.print(str[m+37] + &quot; &quot;);<br />
}<br />
{<br />
if(s4.equals(&quot;0&quot;))<br />
{<br />
System.out.print(&quot;Thousand &quot;);<br />
}<br />
else<br />
for (int n=0;n&lt;=38;n++)<br />
{<br />
if (str[n].equals(s4))<br />
System.out.print(str[n+1] + &quot; Thousand &quot;);<br />
}<br />
}<br />
}<br />
}<br />
{<br />
for (int o=0;o&lt;=40;o++)<br />
if (str[o].equals(s5))<br />
System.out.print(str[o+1] + &quot; Hundred &quot;);<br />
}<br />
{<br />
if (s12.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s6.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s12))<br />
System.out.print(str[r+1]);<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
else<br />
{<br />
for (int p=0;p&lt;=40;p++)<br />
if (str[p].equals(s6))<br />
System.out.print(str[p+37]);<br />
for (int q=0;q&lt;=40;q++)<br />
{<br />
if (str[q].equals(s7))<br />
System.out.print(&quot; &quot; + str[q+1]);<br />
}<br />
}<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
}<br />
else if (b==6)<br />
{<br />
String s1= a.substring(0,1);<br />
String s2= a.substring(1,2);<br />
String s3= a.substring(2,3);<br />
String s4= a.substring(3,4);<br />
String s5= a.substring(4,5);<br />
String s6= a.substring(5,6);<br />
String s10= a.substring(1,3);<br />
String s11= a.substring(4,6);</p>
<p>{<br />
if(s1.equals(&quot;0&quot;))<br />
System.out.print(&quot;&quot;);<br />
else<br />
{<br />
for (int j=0;j&lt;=40;j++)<br />
if (str[j].equals(s1))<br />
System.out.print(str[j+1] + &quot; Lacks &quot;);<br />
}<br />
}<br />
{<br />
if (s10.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s2.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s10))<br />
System.out.print(str[r+1] + &quot; Thousand &quot;);<br />
}<br />
else<br />
{<br />
{<br />
for (int m=0;m&lt;=40;m++)<br />
if (str[m].equals(s2))<br />
System.out.print(str[m+37] + &quot; &quot;);<br />
}<br />
{<br />
if(s3.equals(&quot;0&quot;))<br />
{<br />
System.out.print(&quot;Thousand &quot;);<br />
}<br />
else<br />
for (int n=0;n&lt;=38;n++)<br />
{<br />
if (str[n].equals(s3))<br />
System.out.print(str[n+1] + &quot; Thousand &quot;);<br />
}<br />
}<br />
}<br />
}<br />
{<br />
if(s4.equals(&quot;0&quot;))<br />
System.out.print(&quot;&quot;);<br />
else<br />
{<br />
for (int o=0;o&lt;=40;o++)<br />
if (str[o].equals(s4))<br />
System.out.print(str[o+1] + &quot; Hundred &quot;);<br />
}<br />
}<br />
{<br />
if (s11.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s5.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s11))<br />
System.out.print(str[r+1]);<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
else<br />
{<br />
for (int p=0;p&lt;=40;p++)<br />
if (str[p].equals(s5))<br />
System.out.print(str[p+37]);<br />
for (int q=0;q&lt;=40;q++)<br />
{<br />
if (str[q].equals(s6))<br />
System.out.print(&quot; &quot; + str[q+1]);<br />
}<br />
}<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
}<br />
else if (b==5)<br />
{<br />
String s1= a.substring(0,1);<br />
String s2= a.substring(1,2);<br />
String s3= a.substring(2,3);<br />
String s4= a.substring(3,4);<br />
String s5= a.substring(4,5);<br />
String s10= a.substring(0,2);<br />
String s11= a.substring(3,5);<br />
{<br />
if (s10.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s1.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s10))<br />
System.out.print(str[r+1] + &quot; Thousand &quot;);<br />
}<br />
else<br />
{<br />
{<br />
for (int m=0;m&lt;=38;m++)<br />
if (str[m].equals(s1))<br />
System.out.print(str[m+37] + &quot; &quot;);<br />
}<br />
{<br />
if(s2.equals(&quot;0&quot;))<br />
{<br />
System.out.print(&quot;Thousand &quot;);<br />
}<br />
else<br />
for (int n=0;n&lt;=38;n++)<br />
{<br />
if (str[n].equals(s2))<br />
System.out.print(str[n+1] + &quot; Thousand &quot;);<br />
}<br />
}<br />
}<br />
}<br />
{<br />
for (int o=0;o&lt;=40;o++)<br />
if (str[o].equals(s3))<br />
System.out.print(str[o+1] + &quot; Hundred &quot;);<br />
}<br />
{<br />
if (s11.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s4.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s11))<br />
System.out.print(str[r+1]);<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
else<br />
{<br />
for (int p=0;p&lt;=40;p++)<br />
if (str[p].equals(s4))<br />
System.out.print(str[p+37]);<br />
for (int q=0;q&lt;=40;q++)<br />
{<br />
if (str[q].equals(s5))<br />
System.out.print(&quot; &quot; + str[q+1]);<br />
}<br />
}<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
}<br />
else if (b==4)<br />
{<br />
String s1= a.substring(0,1);<br />
String s2= a.substring(1,2);<br />
String s3= a.substring(2,3);<br />
String s4= a.substring(3,4);<br />
String s10= a.substring(2,4);<br />
{<br />
if(s1.equals(&quot;0&quot;))<br />
System.out.print(&quot;&quot;);<br />
else<br />
{<br />
for (int j=0;j&lt;=40;j++)<br />
if (str[j].equals(s1))<br />
System.out.print(str[j+1] + &quot; Thousand &quot;);<br />
}<br />
}<br />
{<br />
if(s2.equals(&quot;0&quot;))<br />
System.out.print(&quot;&quot;);<br />
else<br />
{<br />
for (int o=0;o&lt;=40;o++)<br />
if (str[o].equals(s2))<br />
System.out.print(str[o+1] + &quot; Hundred &quot;);<br />
}<br />
}<br />
{<br />
if (s10.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s3.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s10))<br />
System.out.print(str[r+1]);<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
else<br />
{<br />
for (int p=0;p&lt;=40;p++)<br />
if (str[p].equals(s3))<br />
System.out.print(str[p+37]);<br />
for (int q=0;q&lt;=40;q++)<br />
{<br />
if (str[q].equals(s4))<br />
System.out.print(&quot; &quot; + str[q+1]);<br />
}<br />
}<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
}<br />
else if (b==3)<br />
{<br />
String s1= a.substring(0,1);<br />
String s2= a.substring(1,2);<br />
String s3= a.substring(2,3);<br />
String s10= a.substring(1,3);<br />
{<br />
if(s1.equals(&quot;0&quot;))<br />
System.out.print(&quot;&quot;);<br />
else<br />
{<br />
for (int o=0;o&lt;=40;o++)<br />
if (str[o].equals(s1))<br />
System.out.print(str[o+1] + &quot; Hundred &quot;);<br />
}<br />
}<br />
{<br />
if (s10.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s2.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s10))<br />
System.out.print(str[r+1]);<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
else<br />
{<br />
for (int p=0;p&lt;=40;p++)<br />
if (str[p].equals(s2))<br />
System.out.print(str[p+37]);<br />
for (int q=0;q&lt;=40;q++)<br />
{<br />
if (str[q].equals(s3))<br />
System.out.print(&quot; &quot; + str[q+1]);<br />
}<br />
}<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
}<br />
else if (b==2)<br />
{<br />
String s1= a.substring(0,1);<br />
String s2= a.substring(1,2);<br />
String s10= a.substring(0,2);<br />
{<br />
if (s10.equals(&quot;00&quot;))<br />
System.out.print(&quot;&quot;);<br />
else if (s1.equals(&quot;1&quot;))<br />
{<br />
for (int r=0;r&lt;=40;r++)<br />
if (str[r].equals(s10))<br />
System.out.print(str[r+1]);<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
else<br />
{<br />
for (int p=0;p&lt;=40;p++)<br />
if (str[p].equals(s1))<br />
System.out.print(str[p+37]);<br />
for (int q=0;q&lt;=40;q++)<br />
{<br />
if (str[q].equals(s2))<br />
System.out.print(&quot; &quot; + str[q+1]);<br />
}<br />
}<br />
System.out.print(&quot;\n&quot;);<br />
}<br />
}<br />
else if (b==1)<br />
{<br />
String s1= a.substring(0,1);<br />
for (int q=0;q&lt;=40;q++)<br />
if (str[q].equals(s1))<br />
System.out.print(&quot; &quot; + str[q+1]);<br />
}<br />
System.out.println(&quot;\n&quot;);<br />
}<br />
}<br />
// By Abhishek Singh (abhishek_singh_rajawat@yahoo.co.in).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

