i have a problem for this program .
how can i use the program in the middle..
i tried to put it IN .. but many error exist..
please help me with my program .. thanks..
here's the output:
Enter Name: Simplicio
Enter Password: pOLOtAn
1 Capital constant letter/s
4 lower case consonant letter/s
0 capital Vowel letter/s
4lower case Vowel letter/s
Try Again?
import java.io.*;
import java.awt.Graphics;
import java.util.Random;
import javax.swing.*;
import java.util.Scanner;
public class midquiz
{
public static void main (String [] args) throws IOException
{
//try
{
Scanner input = new Scanner(System.in);
String name,pass,ans;
String pass1="pOLOtAn";
int len;
char len1[];
len1 = new char[20];
do
{
System.out.println ("Username must be 8 to 15 character only.");
System.out.print("Enter Username:");
name = input.nextLine();
len = name.length();
if (len>= 8 && len<=15)
{
for (int b=0;b<1;b++)
{
System.out.print("Enter Password:");
pass=input.nextLine();
if(pass.equals(pass1))
{
System.out.print("Alphabetical Order of your name is:");
for (int c=0;c<len;c++)
{
len1[c]=name.charAt(c);
}
//for(int d=1;d<len;d++)
//{
// if (let[c]>let[d])
// {
// char temp=let[c];
// let[c]=let[d];
// let[d]= temp;
// }
// }
for (int c=0;c<len;c++)
{
System.out.println(len1[c]+"");
}
}
else
{
System.out.println("You Have Enter Wrong PassWord ");
System.exit(0);
}
}
}
else
{
System.out.println("ILLEGAL USER! GOODBYE....");
System.exit (0);
}
System.out.println("\n Try Again? [Yes/No]:");
ans=input.nextLine();
}while (ans.equalsIgnoreCase ("Yes"));
}
}
}