Commit 8edc3bf
BAEL-821 - How to round a number to n decimal places in Java (eugenp#1953)
* Code for Dependency Injection Article.
* Added Java based configuration. Downloaded formatter.xml and reformatted
all changed files. Manually changed tab into 4 spaces in XML
configuration files.
* BAEL-434 - Spring Roo project files generated by Spring Roo. No
formatting applied. Added POM, java and resources folders.
* Moved project from roo to spring-roo folder.
* BAEL-838 Initial code showing how to remove last char - helper class and tests.
* BAEL-838 Corrected Helper class and associated empty string test case. Added StringUtils.substing tests.
* BAEL-838 Refromatted code using formatter.xml. Added Assert.assertEquals import. Renamed test to follow convention. Reordered tests.
* BAEL-838 - Added regex method and updated tests.
* BAEL-838 Added new line examples.
* BAEL-838 Renamed RemoveLastChar class to StringHelper and added Java8 examples. Refactord code.
* BAEL-838 Changed method names
* BAEL-838 Tiny change to keep code consistant. Return null or empty.
* BAEL-838 Removed unresolved conflict.
* BAEL-821 New class that shows different rounding techniques. Updated POM.
* BAEL-821 - Added unit test for different round methods.
* BAEL-821 Changed test method name to follow the convention1 parent 0b108e3 commit 8edc3bf
3 files changed
Lines changed: 74 additions & 0 deletions
File tree
- core-java
- src
- main/java/com/baeldung/maths
- test/java/com/baeldung/maths
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
369 | 375 | | |
370 | 376 | | |
371 | 377 | | |
| 378 | + | |
372 | 379 | | |
373 | 380 | | |
374 | 381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments