> > I could have swore I was doing everything right, but no matter what I
> > try I end up getting the following error:
[quoted text clipped - 29 lines]
>
> The simplest fix is to call your class something else.
Im still really new to programming and my java 1 class is online so I
may be confusing myself here... the class name is ssnToken, correct? I
tried adding the java.util onto the StringTokenizer, but that did not
work. I use eclipse as my IDE and it tells me there error is on the new
'StringTokenizer(ssn, "-");' part of the line. It says: The constructor
StringTokenizer(String, String) is undefined
hiwa - 10 Sep 2006 05:39 GMT
Sean Washington のメッセージ:
> > > I could have swore I was doing everything right, but no matter what I
> > > try I end up getting the following error:
[quoted text clipped - 36 lines]
> 'StringTokenizer(ssn, "-");' part of the line. It says: The constructor
> StringTokenizer(String, String) is undefined
> public class StringTokenizer
> {
The cause of the error is you using the name of a Java core API class,
which is, or happens to be, StringTokenizer. Rename your class. How
about public class SeanWashington. The error should go away.
Sean Washington - 10 Sep 2006 05:47 GMT
> Sean Washington のメッセージ:
>
[quoted text clipped - 44 lines]
> which is, or happens to be, StringTokenizer. Rename your class. How
> about public class SeanWashington. The error should go away.
wow...I think maybe I need to go to bed.
That worked. Thanks for the help