CSE 142 Lecture 17: Line-Based File input output files

61 views7 pages
Verified Note

Document Summary

Nove(cid:289)ber (cid:800)(cid:290)d, (cid:800)(cid:798)(cid:799)8 - toke(cid:290)-based file i(cid:290)put co(cid:290)ti(cid:290)ued & li(cid:290)e-based file i(cid:290)put. 1 // a program to read in any number of real numbers from a file and find. 2 // the minimum and maximum values read. 3 // least one number and no other tokens. 5 // note the use of . hasnextdouble() to determine if there are tokens remaining. 10 public static void main(string[] args) throws filenotfoundexception { 34 system. out. println( "read " + count + " numbers. The lord of the rings: the return of the king. The good, the bad and the ugly (1966)8. 8. The lord of the rings: the fellowship of the ring(2001)8. 8. Star wars: episode v - the empire strikes back. The lord of the rings: the two towers. Star wars: episode iv - a new hope. Dr. strangelove or: how i learned to stop worrying and love the bomb. Star wars: episode vi - return of the jedi (1983)8. 3.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions