Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4017777

StringTokenizer ignores '\f' as a white Space

XMLWordPrintable

    • 1.2beta2
    • sparc
    • solaris_2.5.1
    • Verified

      Following program tests StringTokenizer for all White Space charactors as an delimiter(Java Languagte Spec 20.5.19 for valid WhiteSpace charactors).

      Current Implementation Ignores '\f' as white space charactor.

      ------8< --------- TestStrTknizer.java --------------------------------

      import java.util.StringTokenizer;

      public class TestStrTknizer {

        public static void main(String[] argv) {
          StringTokenizer st = new StringTokenizer("ABCDEFG\fHIJKLM PQR");
          while (st.hasMoreTokens()) {
            System.out.println("Token :" + st.nextToken());
          }
        }
      }

      ---------------------------------------------------------------

            mmcclosksunw Michael Mccloskey (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: