阅读下列程序,写出程序运行结果。import j ava. util. StringTokenizer;public class C3301{pu
阅读下列程序,写出程序运行结果。
import j ava. util. StringTokenizer;
public class C3301
{
public static void main(String[] args)
{
String ss="public static void main";
StringTokenizer pas=new StringTokenizer(ss, " ") ;
int n=pas. countTokens() ;
System. out. println(n) ;
String s=pas. nextToken() ;
for(pas. nextToken() ; pas. hasMorcTokens() ; s=pas. nextToken()
System. out. println(s) ;
}
}