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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started