I want to split the String using array. i am do it on the simple method.
But i want change the below code by using array.
class example1
{
public static void main(String arg[]) {
StringTokenizer st = new StringTokenizer ("this is a test");
while (st.hasMoreToke ns()) {
String key=st.nextToke n();
System.out.prin tln(key);
}
}
}
the out put is like this
this
is
a
test
so pls do the needful
Thanks
Sang
But i want change the below code by using array.
class example1
{
public static void main(String arg[]) {
StringTokenizer st = new StringTokenizer ("this is a test");
while (st.hasMoreToke ns()) {
String key=st.nextToke n();
System.out.prin tln(key);
}
}
}
the out put is like this
this
is
a
test
so pls do the needful
Thanks
Sang
Comment