Skip to main content

'class' or 'interface' expected

1 reply [Last post]
denisdoherty
Offline
Joined: 2008-02-18

I am having another problem, when i entered in this code

Code:
private static boolean number(String Number, Interface, theStub){
try{
String List = theStub.getnumber();
StringTokenizer tokens = new StringTokenizer (List);
while (tokens.hasMoreTokens())
if (tokens.nextToken().equalsIgnoreCase(Number))
return true;
}catch (Exception e) {System.out.println("Error : " + e); }
return false;
}

It was throwing me back an error class or interface expected but i can not see the problem with the code, does anyone know where i am going wrong.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jentleman
Offline
Joined: 2008-03-24

"Interface" is a class, right?
If yes you need to remove the comma between "Interface" and "theStub"