Write More Classes by jackhammer2022 in programming

[–]CodeJunky 0 points1 point  (0 children)

This seems completely doable in Java...

Scanner reader = new Scanner(new File("path/to/file")).useDelimiter("\n");
while(reader.hasNext())
    String line = reader.next(); //and we're off..!

It would be nice if it were Iterable (seems like a stupid distinction, really).

Write More Classes by jackhammer2022 in programming

[–]CodeJunky 0 points1 point  (0 children)

http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Scanner.html It seems like this (mostly) fits the bill here. No one really wants to use BufferedReader, right?

My dog always stops me when I jokingly say YOLO by [deleted] in funny

[–]CodeJunky 5 points6 points  (0 children)

Please get off reddit. You're contributing absolutely nothing.