• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Minor error in OCP study guide: Chapter 8 IO

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On page 409, in table 8.1, next to listFiles() it says:

Returns a File[] array denoting the files in the directory


It also returns directories. In the rest of the table you explicitely differentiate between files and directories. I propose to change the sentence into:

Returns a File[] array denoting the files and directories in the directory

 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bram,
Thanks for the feedback. I've added it to our private list of things that could be clearer, but not quite wrong. (The word "file" is often used to mean "file or directory". In this case, I think we were thinking File objects)
reply
    Bookmark Topic Watch Topic
  • New Topic