Hey there! any question in your mind? Ask It Now!.

Popular Categories





input(1,2) and want output as 1 and 2 using string tokenizer

0 votes
103 views
asked in Programming by dell
input(1,2) and want output as 1 and 2 using string tokenizer

then i cant insert in 1 and 2

1 Answer

0 votes
answered by anonymous
  1. StringTokenizer st = new StringTokenizer("1,2",",");  
  2.      while (st.hasMoreTokens()) {  
  3.          System.out.println(st.nextToken());  
  4.      }  
  5.    }

Related Questions

+2 votes
1 answer 53 views
asked in Programming by neha (560 points)
0 votes
1 answer 149 views
+1 vote
1 answer 773 views
+3 votes
1 answer 638 views
+2 votes
2 answers 788 views
–1 vote
0 answers 110 views
+6 votes
2 answers 2,184 views
+1 vote
1 answer 145 views
+4 votes
5 answers 713 views

Not a Member yet?

Ask to Folks Login

My Account
606 Folks are online
63 members and 543 guest online
Your feedback is highly appreciated