请帮忙看下这个代码怎么回事
import java.util.*;class CountException extends Exception
{
public CountException()
{
super("账户名必须是数字");
}
public void PrintfMessage()
{
System.out.println("账户名必须由数字组成");
}
}
class countException extends Exception
{
public countException()
{
super("账户名1-10位数组成");
}
public void PrintfMessage()
{
System.out.println("账户名由十位数字组成");
}
}
class Count
{
final int number=10;
private int count=0;
private char a[]=new char[number];
private String s[]=new String[number];
Scanner reader=new Scanner(System.in);
public Count()
{
System.out.println("请输入账户名:");
for(int i=0;i<number;i++)
{
try
{
s[i]=reader.next();
a[i]=s[i].charAt(0);
count++;
if(a[i]<48||a[i]>57)
throw new CountException();
if(count>10)
throw new countException();
System.out.print(a[i]);
}
catch(CountException e)
{
e.PrintfMessage();
}
catch(countException e)
{
e.PrintfMessage();
}
}
}
}
class ExceptionDemo5
{
public static void main(String[] args)
{
Count count=new Count();
}
}
出现的提示是
--------------------Configuration: <Default>--------------------
java.lang.NoClassDefFoundError: CountException (wrong name: countException)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at (URLClassLoader.java:449)
at (URLClassLoader.java:71)
at (URLClassLoader.java:361)
at (URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at (URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Exception in thread "main"
Process completed.
请问这个怎么修改呢???