FileInputStreamFileReaderexists(), isDirectory(), length(), delete()java.nio.file gives a cleaner, more powerful API (Path, Files) than the classic java.io.File for querying metadata, walking directory trees, and doing bulk reads/writes.
Typical flow: send an HTTP request to a REST API → receive a JSON response body (as text) → deserialize it into Java objects → work with the data like any other object.
"Comma-Separated Values" — a plain-text tabular format; each line is a row, fields separated by commas. Simple to write/read with split(",").
Each user has a public key (shared openly, used to encrypt) and a private key (kept secret, used to decrypt). Anyone can encrypt a message for you, but only you can decrypt it.
| Method | Purpose |
|---|---|
exists(path) | true if the path exists |
size(path) | file size in bytes |
readAllLines(path) | List<String> of every line |
write(path, bytes) | writes data to the file |
isDirectory(path) | true if it's a folder |
delete(path) | removes the file/folder |
| Method | Purpose |
|---|---|
println(x) | writes x + newline to the file |
printf(fmt, args) | writes formatted output |
close() | flushes & closes the writer |
hasNextLine() | true if more lines remain to read |
nextLine() | reads the next full line |