hi to all programmer...
i have a problem about this program ..
an error exist ..
import java.io.*;
import java.awt.Graphics;
import java.util.Random;
import javax.swing.*;
public class midquiz 2{ // "{" expected
public static void main (String [] args) throws IOExeption{
BufferedReader 9new InputStreamreader (System.in));
String name,pass,ans; String pass1="pOLOtAn"; int len;
do{
for (inta=0;a<=0;a--)
{
s.o.p ("Enter Username:");
name = IN.readLine();
len = name.length();
if (len>= 8 && len<=15)
{
for (int b=0;b<3;b++)
{
s.o.p ("Enter Password:");
pass=IN.readLine();
if(pass.equals(pass1))
{s.o.p ("Alphabetical Order of your name is:");
for (int c=0;c<len;c++)
{
len [c]=name.charAt (c);
}
for(int c=0;c<len;c++)
{
if (let[c]>let [d])
{
char temp=let [c];
let[c]=let[d];
let[d]= temp;
}
}
}
for (int c=0;c<len;c++)
{
s.o.p (let [c]+"");
}
}
if (b==2)
{
s.o.pIn ("ILLEGAL USER! GOODBYE....");
System.exit (0);
}
else
{
s.o.pIn ("INVALID PASSWORD!");
}
}
break;
}
s.o.pIn ("Username must be 8 to 15 character only.");
}
s.o.p ("\n Try Again? [Yes/No]:";
ans=IN.readLine();
} while (ans.equals Ignore Case ("Yes"));
}}
the output i want to be is this:
// Enter Name: Simplicio
1 Capital constant letter/s
4 lower case consonant letter/s
0 capital Vowel letter/s
4 lower case Vowel letter/s
Try Again? //
please help me.. thanks