What will be the output of following program code?
importjava.util.StringTokenizer;
publicclassTokendemo
{
publicstaticvoid main(String[] args)
{
StringTokenizerst=newStringTokenizer(Hi how are you?);
while(st.hasMoreTokens())
{
System.out.println(st.nextToken());
}
}
}
Reveal answer
Fill a bubble to check yourself