Well not having theStub class is the least of your problems by the looks of it.
I know you have removed theStub from
private static boolean number(String Number, Interface){
But the rest of that code in the block relies on that class.
None of this will work:
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 is being called here:
String List = theStub.getnumber();
Which you already commented out but with this removed, there is no 'List' which is needed for
StringTokenizer tokens = new StringTokenizer (List);
You are going to need theStub for any of that to work.
Even with that entire code block removed there are still errors as a result in the Client class.