Skip to content

Commit b44883b

Browse files
JonCookpivovarit
authored andcommitted
BAEL-1889 - Let's move the Java Number articles into a new module (#4619)
* BAEL-1849 - Convert from String to Date in Java * BAEL-1863 - Calling Callbacks with Mockito * BAEL-1889 - Let's move the Java Number articles into a new module * BAEL-1889 - Let's move the Java Number articles into a new module
1 parent de2afd7 commit b44883b

41 files changed

Lines changed: 380 additions & 188 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

algorithms/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
- [Ant Colony Optimization](http://www.baeldung.com/java-ant-colony-optimization)
66
- [Validating Input With Finite Automata in Java](http://www.baeldung.com/java-finite-automata)
77
- [Introduction to Jenetics Library](http://www.baeldung.com/jenetics)
8-
- [Check If a Number Is Prime in Java](http://www.baeldung.com/java-prime-numbers)
98
- [Example of Hill Climbing Algorithm](http://www.baeldung.com/java-hill-climbing-algorithm)
109
- [Monte Carlo Tree Search for Tic-Tac-Toe Game](http://www.baeldung.com/java-monte-carlo-tree-search)
1110
- [String Search Algorithms for Large Texts](http://www.baeldung.com/java-full-text-search-algorithms)
@@ -21,7 +20,6 @@
2120
- [Create a Sudoku Solver in Java](http://www.baeldung.com/java-sudoku)
2221
- [Displaying Money Amounts in Words](http://www.baeldung.com/java-money-into-words)
2322
- [A Collaborative Filtering Recommendation System in Java](http://www.baeldung.com/java-collaborative-filtering-recommendations)
24-
- [Find All Pairs of Numbers in an Array That Add Up to a Given Sum](http://www.baeldung.com/java-algorithm-number-pairs-sum)
2523
- [Converting Between Roman and Arabic Numerals in Java](http://www.baeldung.com/java-convert-roman-arabic)
2624
- [Practical Java Examples of the Big O Notation](http://www.baeldung.com/java-algorithm-complexity)
2725
- [Find the Middle Element of a Linked List](http://www.baeldung.com/java-linked-list-middle-element)

algorithms/src/main/java/com/baeldung/algorithms/RunAlgorithm.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.baeldung.algorithms.ga.ant_colony.AntColonyOptimization;
77
import com.baeldung.algorithms.ga.binary.SimpleGeneticAlgorithm;
88
import com.baeldung.algorithms.slope_one.SlopeOne;
9-
import com.baeldung.algorithms.pairsaddupnumber.FindPairs;
109

1110
public class RunAlgorithm {
1211

@@ -39,12 +38,6 @@ public static void main(String[] args) throws InstantiationException, IllegalAcc
3938
case 5:
4039
System.out.println("Please run the DijkstraAlgorithmTest.");
4140
break;
42-
case 6:
43-
final FindPairs findPairs = new FindPairs();
44-
final int[] input = {1, 4, 3, 2, 1, 4, 4, 3, 3};
45-
final int sum = 6;
46-
findPairs.execute(input, sum);
47-
break;
4841
default:
4942
System.out.println("Unknown option");
5043
break;

algorithms/src/main/java/com/baeldung/algorithms/prime/PrimeGenerator.java

Lines changed: 0 additions & 59 deletions
This file was deleted.

algorithms/src/test/java/com/baeldung/algorithms/prime/PrimeGeneratorUnitTest.java

Lines changed: 0 additions & 28 deletions
This file was deleted.

core-java-8/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
- [“Stream has already been operated upon or closed” Exception in Java](http://www.baeldung.com/java-stream-operated-upon-or-closed-exception)
3333
- [Display All Time Zones With GMT And UTC in Java](http://www.baeldung.com/java-time-zones)
3434
- [Copy a File with Java](http://www.baeldung.com/java-copy-file)
35-
- [Generating Prime Numbers in Java](http://www.baeldung.com/java-generate-prime-numbers)
3635
- [Static and Default Methods in Interfaces in Java](http://www.baeldung.com/java-static-default-methods)
3736
- [Iterable to Stream in Java](http://www.baeldung.com/java-iterable-to-stream)
3837
- [Converting String to Stream of chars](http://www.baeldung.com/java-string-to-stream)

core-java/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## Core Java Cookbooks and Examples
44

55
### Relevant Articles:
6-
- [Java – Random Long, Float, Integer and Double](http://www.baeldung.com/java-generate-random-long-float-integer-double)
76
- [Java – Generate Random String](http://www.baeldung.com/java-random-string)
87
- [Java Timer](http://www.baeldung.com/java-timer-and-timertask)
98
- [How to Run a Shell Command in Java](http://www.baeldung.com/run-shell-command-in-java)
@@ -38,7 +37,6 @@
3837
- [A Quick JUnit vs TestNG Comparison](http://www.baeldung.com/junit-vs-testng)
3938
- [Java Primitive Conversions](http://www.baeldung.com/java-primitive-conversions)
4039
- [Java Money and the Currency API](http://www.baeldung.com/java-money-and-currency)
41-
- [Using Math.pow in Java](http://www.baeldung.com/java-math-pow)
4240
- [Converting Strings to Enums in Java](http://www.baeldung.com/java-string-to-enum)
4341
- [Quick Guide to the Java StringTokenizer](http://www.baeldung.com/java-stringtokenizer)
4442
- [JVM Log Forging](http://www.baeldung.com/jvm-log-forging)
@@ -49,7 +47,6 @@
4947
- [How to Add a Single Element to a Stream](http://www.baeldung.com/java-stream-append-prepend)
5048
- [Iterating Over Enum Values in Java](http://www.baeldung.com/java-enum-iteration)
5149
- [Kotlin Java Interoperability](http://www.baeldung.com/kotlin-java-interoperability)
52-
- [How to Round a Number to N Decimal Places in Java](http://www.baeldung.com/java-round-decimal-number)
5350
- [Changing Annotation Parameters At Runtime](http://www.baeldung.com/java-reflection-change-annotation-params)
5451
- [How to Find all Getters Returning Null](http://www.baeldung.com/java-getters-returning-null)
5552
- [Changing the Order in a Sum Operation Can Produce Different Results?](http://www.baeldung.com/java-floating-point-sum-order)
@@ -77,7 +74,6 @@
7774
- [“Sneaky Throws” in Java](http://www.baeldung.com/java-sneaky-throws)
7875
- [OutOfMemoryError: GC Overhead Limit Exceeded](http://www.baeldung.com/java-gc-overhead-limit-exceeded)
7976
- [StringBuilder and StringBuffer in Java](http://www.baeldung.com/java-string-builder-string-buffer)
80-
- [Number of Digits in an Integer in Java](http://www.baeldung.com/java-number-of-digits-in-int)
8177
- [Creating a Java Compiler Plugin](http://www.baeldung.com/java-build-compiler-plugin)
8278
- [A Guide to the Static Keyword in Java](http://www.baeldung.com/java-static)
8379
- [Initializing Arrays in Java](http://www.baeldung.com/java-initialize-array)
@@ -132,7 +128,6 @@
132128
- [Find Sum and Average in a Java Array](http://www.baeldung.com/java-array-sum-average)
133129
- [Java List UnsupportedOperationException](http://www.baeldung.com/java-list-unsupported-operation-exception)
134130
- [Type Erasure in Java Explained](http://www.baeldung.com/java-type-erasure)
135-
- [BigDecimal and BigInteger in Java](http://www.baeldung.com/java-bigdecimal-biginteger)
136131
- [Display All Time Zones With GMT And UTC in Java](http://www.baeldung.com/java-time-zones)
137132
- [Join and Split Arrays and Collections in Java](http://www.baeldung.com/java-join-and-split)
138133
- [Check If Two Lists are Equal in Java](http://www.baeldung.com/java-test-a-list-for-ordinality-and-equality)
@@ -147,7 +142,6 @@
147142
- [Check If a String Is Numeric in Java](http://www.baeldung.com/java-check-string-number)
148143
- [Variable and Method Hiding in Java](http://www.baeldung.com/java-variable-method-hiding)
149144
- [Access Modifiers in Java](http://www.baeldung.com/java-access-modifiers)
150-
- [NaN in Java](http://www.baeldung.com/java-not-a-number)
151145
- [Infinite Loops in Java](http://www.baeldung.com/infinite-loops-java)
152146
- [Why Use char[] Array Over a String for Storing Passwords in Java?](http://www.baeldung.com/java-storing-passwords)
153147
- [Introduction to Creational Design Patterns](http://www.baeldung.com/creational-design-patterns)

core-java/pom.xml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@
2525
<artifactId>commons-lang3</artifactId>
2626
<version>${commons-lang3.version}</version>
2727
</dependency>
28-
<dependency>
29-
<groupId>org.apache.commons</groupId>
30-
<artifactId>commons-math3</artifactId>
31-
<version>${commons-math3.version}</version>
32-
</dependency>
33-
<dependency>
34-
<groupId>org.decimal4j</groupId>
35-
<artifactId>decimal4j</artifactId>
36-
<version>${decimal4j.version}</version>
37-
</dependency>
3828
<dependency>
3929
<groupId>org.bouncycastle</groupId>
4030
<artifactId>bcprov-jdk15on</artifactId>
@@ -393,6 +383,7 @@
393383
<commons-lang3.version>3.5</commons-lang3.version>
394384
<bouncycastle.version>1.55</bouncycastle.version>
395385
<commons-codec.version>1.10</commons-codec.version>
386+
<commons-io.version>2.5</commons-io.version>
396387
<commons-math3.version>3.6.1</commons-math3.version>
397388
<decimal4j.version>1.0.3</decimal4j.version>
398389
<unix4j.version>0.4</unix4j.version>

core-java/src/main/java/com/baeldung/maths/BigDecimalImpl.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

core-java/src/main/java/com/baeldung/maths/BigIntegerImpl.java

Lines changed: 0 additions & 16 deletions
This file was deleted.

java-numbers/.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
*.class
2+
3+
0.*
4+
5+
#folders#
6+
/target
7+
/neoDb*
8+
/data
9+
/src/main/webapp/WEB-INF/classes
10+
*/META-INF/*
11+
.resourceCache
12+
13+
# Packaged files #
14+
*.jar
15+
*.war
16+
*.ear
17+
18+
# Files generated by integration tests
19+
*.txt
20+
backup-pom.xml
21+
/bin/
22+
/temp
23+
24+
#IntelliJ specific
25+
.idea/
26+
*.iml

0 commit comments

Comments
 (0)