Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tyhjä #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

tyhjä #4

wants to merge 4 commits into from

Conversation

SebaSeba
Copy link

@SebaSeba SebaSeba commented May 2, 2016

No description provided.

@SebaSeba
Copy link
Author

SebaSeba commented May 2, 2016

Laskari viikko 6 tehtävä 6.

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

SebaSeba commented May 2, 2016

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

@SebaSeba
Copy link
Author

SebaSeba commented May 2, 2016

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
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