Skip to content

Commit

Permalink
Last commit #1
Browse files Browse the repository at this point in the history
rename all messages (fr to en)

this commit fixes #1
  • Loading branch information
MajidFatima committed Mar 11, 2019
1 parent 9e9433b commit acb1194
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 28 deletions.
56 changes: 31 additions & 25 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public int add(final String numbers) {
delimiter = this.extractDelimiter(numbers);
//"cut" the beginning of the string so that the personalize delimiter is removed
numbersUpdated = numbers.substring(numbers.indexOf("\n") + 1);
logger.info("Hello, World!");
logger.info("Info : delimiter start with // !");
}
return add(numbersUpdated, delimiter);
}
Expand All @@ -41,11 +41,11 @@ private int add(final String numbersWithoutDelimiter, final String delimiter) {
Integer numberInt = Integer.parseInt(number);
if (numberInt < 0) {
negativeNumbers.add(numberInt);
logger.fatal("Fatal : chiffre négatif!");
logger.fatal("Fatal : negative numbers!");
} else if (numberInt <= 1000) {
returnValue += numberInt;
}else{
logger.warn("Warn : chiffre plus grand que 1000!");
logger.warn("Warn : number over 1000");
}
}
}
Expand Down

0 comments on commit acb1194

Please sign in to comment.