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

java.io: Need EOF constant

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 1.0
    • core-libs
    • sparc
    • solaris_2.5

      It would be nice ... if the I/O classes defined an EOF constant that
      people could use to check for EOF rather than using -1,like this:

           while (System.in.read() != EOF)
                  . . .

            mr Mark Reinhold
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: