Skip to content

Commit b606e0d

Browse files
authored
Merge pull request #140 from esw0624/Issue27#1
Fixing the margin for the Data File for Chapter 3.6
2 parents 8236616 + 2b9b267 commit b606e0d

1 file changed

Lines changed: 22 additions & 12 deletions

File tree

source/ch3_javadatatypes.ptx

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -728,18 +728,28 @@ main()
728728
This program reads the file <c>alice30.txt</c> (which follows), and it then splits it into a list of words. Next it creates a dictionary called <c>count</c> which maps each word to the number of times that word occurs in the text. Finally, it prints out the words in alphabetical order along with their frequency.
729729
</p>
730730

731-
<datafile label="datafile-alice1" filename="alice30.txt" editable="no" cols="30" rows="15"><pre>
732-
Down, down, down. Would the fall NEVER come to an end!
733-
'I wonder how many miles I've fallen by this time?' she said aloud. 'I must
734-
be getting somewhere near the centre of the earth.
735-
Let me see: that would be four thousand miles down, I think--'
736-
(for, you see, Alice had learnt several things of this sort in her lessons
737-
in the schoolroom, and though this was not a VERY good opportunity for
738-
showing off her knowledge, as there was no one to listen to her, still it
739-
was good practice to say it over) '--yes, that's about the right distance
740-
--but then I wonder what Latitude or Longitude I've got to?'
741-
(Alice had no idea what Latitude was, or Longitude either,
742-
but thought they were nice grand words to say.) </pre></datafile>
731+
<datafile label="datafile-alice1" filename="alice30.txt" editable="no" cols="30" rows="15">
732+
<pre>
733+
Down, down, down. Would the fall NEVER
734+
come to an end! 'I wonder how many
735+
miles I've fallen by this time?' she
736+
said aloud. 'I must be getting somewhere
737+
near the centre of the earth. Let me see:
738+
that would be four thousand miles down,
739+
I think--' (for, you see, Alice had
740+
learnt several things of this sort in
741+
her lessons in the schoolroom, and though
742+
this was not a VERY good opportunity for
743+
showing off her knowledge, as there was no
744+
one to listen to her, still it was good
745+
practice to say it over) '--yes, that's
746+
about the right distance--but then I
747+
wonder what Latitude or Longitude I've got
748+
to?' (Alice had no idea what Latitude was,
749+
or Longitude either, but thought they were
750+
nice grand words to say.)
751+
</pre>
752+
</datafile>
743753
<p>
744754
Notice that the structure of the program is very similar to the numeric histogram program.
745755
</p>

0 commit comments

Comments
 (0)