I need to write a program that gets inputted files from arguments written from command prompt and prints a random line from it. I don't really know how many exceptions i need and I don't really understand the logic of getting the line from the file. Please help me.
jonjon1456
0
Newbie Poster
Recommended Answers
Jump to Posthttp://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html
A scanner object is created the same way any other Object is created in Java. If you don't know anything about Objects and how they are created, go read the Java …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.