You are viewing a single comment's thread. Return to all comments →
can we do like this if it has any wrong please correct me
public class Solution {
public static void main(String[] args) { Scanner scan = new Scanner(System.in); String s=scan.nextLine(); s.trim(); StringTokenizer st = new StringTokenizer(s,("[_\\@!?.', ]")); int x = st.countTokens(); System.out.println(x); while(st.hasMoreTokens()){ System.out.println(st.nextToken()); } scan.close(); } }
Seems like cookies are disabled on this browser, please enable them to open this website
Database Normalization #5
You are viewing a single comment's thread. Return to all comments →
can we do like this if it has any wrong please correct me
public class Solution {