Question: # Line Breaker **Files Needed** * LineBreaker.java * LineBreakerRunner.java * linebreaker.dat **Lab Goal** : The lab was designed to teach you more about using data

# Line Breaker

**Files Needed**

* LineBreaker.java

* LineBreakerRunner.java

* linebreaker.dat

**Lab Goal** : The lab was designed to teach you more about using data files and using Scanner to chop up Strings

**Lab Description** : Take in a line of Strings from a file and a break number. The break number indicates how many Strings may appear on one line.

**Sample Data**

data contained in linebreaker.dat

1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9

4

t h e b i g b a d w o l f h a d b i g e a r s a n d t e e t h

2

a c o m p u t e r s c i e n c e p r o g r a m

7

i a m s a m i a m

2

**Sample Output** :

1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9

1234

5678

9012

3456

789

t h e b i g b a d w o l f h a d b i g e a r s a n d t e e t h

th

eb

ig

ba

dw

ol

fh

ad

bi

ge

ar

sa

nd

te

et

h

a c o m p u t e r s c i e n c e p r o g r a m

acomput

erscien

ceprogr

am

i a m s a m i a m

ia

ms

am

ia

m

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!