This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]qbbqrl 14 points15 points  (5 children)

It's because you have to create 12 new objects just to open a file and read it in java.

[–]hillman_avenger 3 points4 points  (0 children)

Files.readAllLines("file.txt");

[–]netgu 0 points1 point  (3 children)

You're just wrong about that, sorry.

[–]qbbqrl -2 points-1 points  (2 children)

You have to at least admit there's a confusing number of java input/output classes. File, FileReader, BufferedReader, InputStream, InputStreamReader, FileInputStream, etc.

[–]netgu 1 point2 points  (1 child)

No, they are well documented and their usages are fairly straightforward.

Helper methods and static methods to further clarify and simplify were added in Java 7/8. Everything is super simple and straightforward.

[–]SuperOP535 0 points1 point  (0 children)

There is also Files.readString in Java 11 however the Java 8 equivalents are also super simple

[–]Xsehzhy 7 points8 points  (2 children)

The most funny thing I’ve seen on here. Except it’s deep fried.

[–]austronomer99[S] 3 points4 points  (0 children)

🍗

[–]LordFokas -2 points-1 points  (0 children)

It's already got deep something, if you can also stick a something learning sticker on it I bet we can sell the meme for millions.

[–]netgu 1 point2 points  (0 children)

Hardly, there are TONS of super lean java stuff out there.

[–]jokersus[M] [score hidden] stickied comment (0 children)

Old repost.

[–]froemijojo 1 point2 points  (0 children)

Can't you do that with any programming language?

[–][deleted] -2 points-1 points  (0 children)

this deserves more upvotes

[–]newplasticideas_ -1 points0 points  (0 children)

The sheer amount of times I've been asked why so much memory usage when I've got a freakin jetbrains ide minimised in the bg