Search:

Type: Posts; User: Brt93yoda

Search: Search took 0.08 seconds.

  1. Replies
    10
    Views
    4,037

    Re: Getting length of individual token?

    You need to change System.out.print(sinput2.nextToken() + " "); to System.out.println(temp + " ");
  2. Replies
    10
    Views
    4,037

    Re: Getting length of individual token?

    You have to get the token, and then check the size.


    StringTokenizer sinput2 = new StringTokenizer(sinput);
    String temp = sinput2.nextToken();
    System.out.println(temp.length()); //There is no...
Results 1 to 2 of 2