4.14. Line numbers - Java

in #programming10 years ago

Starting out with Java: From control structures through objects
Chapter 4
Programming Challenges

  1. Line numbers

Write a program that asks the user for the name of a file. The program should display the contents of the file with each
line preceded with a line number followed by a colon. The line numbering should start at 1.

Gaddis, Tony (2015-05-29). Starting Out with Java: From Control Structures through Objects (Page 265). Pearson Education. Kindle Edition.

Happy Steeming Everyone! :)

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.076
BTC 63711.37
ETH 1672.90
USDT 1.00
SBD 0.42