Java files and paths
Use Path to build and compare names, Files to read and manage entries, and File to work with older Java code. Explore all three Java 21 APIs through receipts, school submissions, and backup jobs.
Path
- Path.of and resolveBuild the path to a receipt
- Path equality and orderingDeduplicate a list of classroom handouts
- Path locations and real pathsLocate the current workshop folder
- Path name componentsOrganize submitted projects by year
- Path.normalize and relativizeLink a lesson to its diagram
- Path.registerWatch an assignment inbox during office hours
- Path.startsWith and endsWithRoute incoming receipts by folder
- Path.toUri and toFileSend a report location to an older desktop application
Files
- Files.readStringRead a saved shopping note
- Files.writeStringAdd an item to a saved shopping list
- Files POSIX permissions and ownerRestrict a practice payroll export to its owner
- Files attribute viewsBuild a document catalog entry
- Files binary streamsRead a scanner's one-byte status code
- Files buffered text I/OPrint the next clinic appointment
- Files entry and access checksScreen ordinary applications in a drop folder
- Files hard and symbolic linksPoint today's timetable at the master copy
- Files modification timesRebuild a dated newsletter archive
- Files temporary files and foldersIsolate two exam previews
- Files.copyHand a copy of a receipt to the customer
- Files.createDirectories and createDirectoryPrepare the monthly payroll folders
- Files.createFileIssue a single claim ticket
- Files.delete and deleteIfExistsClear yesterday's practice labels
- Files.getFileStoreInspect storage for a recording session
- Files.isSameFile and mismatchVerify a backup before and after an edit
- Files.list and newDirectoryStreamCount the reading lists available for a class
- Files.movePublish the signed attendance sheet
- Files.newByteChannelRead the third parcel status without scanning earlier records
- Files.probeContentTypeChoose a fallback for an attachment preview
- Files.readAllBytes and writeStore a three-level brightness preset
- Files.readAllLines and linesCount confirmed riders in a shuttle manifest
- Files.sizeCheck a receipt attachment size
- Files.walk, find and walkFileTreeFind receipts inside monthly folders
File
- File absolute and canonical pathsReconcile two spellings in an export log
- File access flagsPrepare a script for the workshop owner
- File constructors and namesLabel a receipt before it is saved
- File equality and orderingDeduplicate receipt names before a download
- File roots and disk spaceCheck disk capacity before exporting a video
- File temporary and renamed filesPublish a completed draft under its final name
- File type, size, and timestampsCheck a daily sales export before mailing it
- File.list and listFilesPick only invoices for the checkout summary
- File.mkdir and createNewFileReserve the first receipt in a new branch
- File.setLastModifiedPreserve an invoice date during an import
- File.toURI and toPathAttach a receipt whose name contains a space