Skip to content

tyhjä#4

Open
SebaSeba wants to merge 4 commits into
Mahtimursut:masterfrom
SebaSeba:muutoksia
Open

tyhjä#4
SebaSeba wants to merge 4 commits into
Mahtimursut:masterfrom
SebaSeba:muutoksia

Conversation

@SebaSeba

@SebaSeba SebaSeba commented May 2, 2016

Copy link
Copy Markdown

No description provided.

@SebaSeba

SebaSeba commented May 2, 2016

Copy link
Copy Markdown
Author

Laskari viikko 6 tehtävä 6.

Sebastian Hemmilä added 2 commits May 2, 2016 20:41
@SebaSeba

SebaSeba commented May 2, 2016

Copy link
Copy Markdown
Author

Sähläystä, siksi useampi pull requesti, tyhjiä rivejä readme.md:hen lisätty. Sori.

@SebaSeba

SebaSeba commented May 2, 2016

Copy link
Copy Markdown
Author

Refaktoroitiin FileUtil luokan Read metodia tekemällä readlines metodi koska Read metodi oli liian pitkä ja teki liian monta asiaa.

@@ -37,20 +37,24 @@ public static String Read(String fileName) {
try (BufferedReader br = new BufferedReader(new FileReader(fileName))) {
StringBuilder sb = new StringBuilder();
String line = br.readLine();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Olisi mukavaa jos tämäkin rivi olisi uuden metodin sisällä. Tällöin olisi myös metodissa tarve yhtä vähemmälle parametrille ja se tekisi kokonaan lukemisen readerista builderiin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants