Recent Posts

Connect On Facebook

Wednesday, 2 March 2011

Find Name - Pazzle Java Program

"Find Name"  if you run this java program then you thinkable name will produce. just you copy The Program run it your system you got the result .If you like this program means please comments me.Thank you.


import java.io.*;
class NameDetect
{
char a[]=new char[8];
char b[]=new char[8];
char c[]=new char[10];
char end[];
char d='a';
int j=0,k=0,m=0;
int main[];
int main1[];

NameDetect()throws Exception
{
DataInputStream dis=new DataInputStream(System.in);
System.out.println("\t\t\tGUESS NAME DETECTOR");
System.out.print("\tHow many letters Your gess name:");
int val=Integer.parseInt(dis.readLine());
System.out.println("...............................................");
main=new int[val];
for(int i=0;i<val;i++)
{
display();
int kkkk=i+1;
System.out.print("\n\tEnter "+kkkk+" letter section:");
main[i]=Integer.parseInt(dis.readLine());
System.out.println("...............................................");
j=0;k=0;m=0;
d='a';
}
main1=new int[main.length];
end=new char[main.length];
for(int i=0;i<main.length;i++)
{
display2();
int kkkk=i+1;
System.out.print("\n\tEnter "+kkkk+" letter section:");
int ok=Integer.parseInt(dis.readLine());
System.out.println(".................................................................");
if(main[i]==3)
{
end[i]=c[ok-1];
}
if(main[i]==2)
{
end[i]=b[ok-1];
}
if(main[i]==1)
{
end[i]=a[ok-1];
}
}
System.out.print("\nYour guess name is:");
for(int i=0;i<end.length;i++)
{
System.out.print(end[i]);
}
}
void display2()
{
for(int i=0;i<main.length;i++)
{
int kk=8,mm=10;
if(main[i]==3)
{
display1(kk,c);
}
if(main[i]==2)
{
display1(mm,b);
}
if(main[i]==1)
{
display1(mm,a);
}
}
}
void display1(int kkk,char aaa[])
{
for(int i=0;i<aaa.length;i++)
{
System.out.print(aaa[i]+"\t");
}
System.out.print("\n");
}
void display()
{
for(int i=0;i<=26;i++)
{
if(i<8)
{
a[j]=d;
d++;
j++;
}
if(i>8&&i<=16)
{
b[k]=d;
d++;
k++;
}
if(i>16&&i<=26)
{
c[m]=d;
d++;
m++;
}
}
for(int i=0;i<10;i++)
{
if(i<8)
{
System.out.println(a[i]+"\t"+b[i]+"\t"+c[i]);
}
else
{
System.out.println("\t\t"+c[i]);
}
}
}

}
class FindName
{
public static void main(String s[])throws Exception
{
NameDetect aa=new NameDetect();
}
}

keywords: Find Name  - Pazzle Java Program | Pazzle java Program | Find the Name pazzle java Program,Interesting java program

0 comments:

Post a Comment

Popular Posts

Disclaimer

This blog-spot does not host any files mentioned on this blog or on its own servers. He emphasized that to various links on the Internet that already exist and are uploaded by other websites or users there. Links to albums will be removed if a complaint with the artist or publisher.