From 8470f8bf9f80ce338aaa5de10dfbc314f60643eb Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Thu, 23 Sep 2021 14:03:26 -0400 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E5=88=B0?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E7=9A=84=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {java-numbers-2 => parent-java/java-numbers-2}/README.md | 0 {java-numbers-2 => parent-java/java-numbers-2}/pom.xml | 1 - .../algorithms/primechecker/BigIntegerPrimeChecker.java | 0 .../algorithms/primechecker/BruteForcePrimeChecker.java | 0 .../ossez/algorithms/primechecker/OptimisedPrimeChecker.java | 0 .../java/com/ossez/algorithms/primechecker/PrimeChecker.java | 0 .../ossez/algorithms/primechecker/PrimesPrimeChecker.java | 0 .../src/main/java/com/ossez/area/circle/Circle.java | 0 .../src/main/java/com/ossez/area/circle/CircleArea.java | 0 .../src/main/java/com/ossez/binarynumbers/BinaryNumbers.java | 0 .../src/main/java/com/ossez/lcm/BigIntegerLCM.java | 0 .../src/main/java/com/ossez/lcm/EuclideanAlgorithm.java | 0 .../main/java/com/ossez/lcm/PrimeFactorizationAlgorithm.java | 0 .../src/main/java/com/ossez/lcm/SimpleAlgorithm.java | 0 .../src/main/java/com/ossez/nan/NaNExample.java | 0 .../src/main/java/com/ossez/pow/PowerExample.java | 0 .../src/main/java/com/ossez/prime/PrimeGenerator.java | 0 .../ossez/algorithms/primechecker/PrimeCheckerUnitTest.java | 2 -- .../java/com/ossez/binarynumbers/BinaryNumbersUnitTest.java | 0 .../src/test/java/com/ossez/java/math/MathUnitTest.java | 0 .../src/test/java/com/ossez/lcm/BigIntegerLCMUnitTest.java | 0 .../test/java/com/ossez/lcm/EuclideanAlgorithmUnitTest.java | 0 .../com/ossez/lcm/PrimeFactorizationAlgorithmUnitTest.java | 2 ++ .../src/test/java/com/ossez/lcm/SimpleAlgorithmUnitTest.java | 2 ++ .../ossez/lossyconversion/ConversionTechniquesUnitTest.java | 0 .../test/java/com/ossez/prime/PrimeGeneratorUnitTest.java | 0 {java-numbers => parent-java/java-numbers}/.gitignore | 0 {java-numbers => parent-java/java-numbers}/README.md | 0 {java-numbers => parent-java/java-numbers}/pom.xml | 3 +-- .../src/main/java/com/ossez/maths/BigDecimalDemo.java | 0 .../main/java/com/ossez/maths/FloatingPointArithmetic.java | 0 .../java-numbers}/src/main/java/com/ossez/maths/Round.java | 0 .../com/ossez/nth/root/calculator/NthRootCalculator.java | 0 .../src/main/java/com/ossez/nth/root/main/Main.java | 0 .../src/main/java/com/ossez/numberofdigits/Benchmarking.java | 0 .../main/java/com/ossez/numberofdigits/NumberOfDigits.java | 0 .../java/com/ossez/numberofdigits/NumberOfDigitsDriver.java | 0 .../main/java/com/ossez/pairsaddupnumber/DifferentPairs.java | 0 .../main/java/com/ossez/pairsaddupnumber/ExistingPairs.java | 0 .../src/main/java/com/ossez/pairsaddupnumber/FindPairs.java | 0 .../src/main/java/com/ossez/random/SecureRandomDemo.java | 0 .../src/main/java/com/ossez/string/DoubleToString.java | 0 .../java-numbers}/src/main/resources/log4j.properties | 0 .../java-numbers}/src/main/resources/logback.xml | 0 .../ossez/decimalformat/DecimalFormatExamplesUnitTest.java | 0 .../test/java/com/ossez/maths/BigDecimalDemoUnitTest.java | 0 .../test/java/com/ossez/maths/BigDecimalImplUnitTest.java | 0 .../test/java/com/ossez/maths/BigIntegerDemoUnitTest.java | 0 .../test/java/com/ossez/maths/BigIntegerImplUnitTest.java | 0 .../com/ossez/maths/FloatingPointArithmeticUnitTest.java | 0 .../src/test/java/com/ossez/maths/MathSinUnitTest.java | 0 .../src/test/java/com/ossez/maths/RoundUnitTest.java | 0 .../ossez/nth/root/calculator/NthRootCalculatorUnitTest.java | 0 .../src/test/java/com/ossez/nth/root/main/MainUnitTest.java | 0 .../ossez/numberofdigits/NumberOfDigitsIntegrationTest.java | 0 .../com/ossez/pairsaddupnumber/DifferentPairsUnitTest.java | 0 .../com/ossez/pairsaddupnumber/ExistingPairsUnitTest.java | 0 .../src/test/java/com/ossez/random/JavaRandomUnitTest.java | 0 .../ossez/removingdecimals/RemovingDecimalsManualTest.java | 0 .../com/ossez/removingdecimals/RemovingDecimalsUnitTest.java | 0 .../test/java/com/ossez/string/DoubleToStringUnitTest.java | 0 parent-java/pom.xml | 5 +++++ 62 files changed, 10 insertions(+), 5 deletions(-) rename {java-numbers-2 => parent-java/java-numbers-2}/README.md (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/pom.xml (96%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/algorithms/primechecker/BigIntegerPrimeChecker.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/algorithms/primechecker/BruteForcePrimeChecker.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/algorithms/primechecker/OptimisedPrimeChecker.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/algorithms/primechecker/PrimeChecker.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/algorithms/primechecker/PrimesPrimeChecker.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/area/circle/Circle.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/area/circle/CircleArea.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/binarynumbers/BinaryNumbers.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/lcm/BigIntegerLCM.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/lcm/EuclideanAlgorithm.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/lcm/PrimeFactorizationAlgorithm.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/lcm/SimpleAlgorithm.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/nan/NaNExample.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/pow/PowerExample.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/main/java/com/ossez/prime/PrimeGenerator.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/test/java/com/ossez/algorithms/primechecker/PrimeCheckerUnitTest.java (99%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/test/java/com/ossez/binarynumbers/BinaryNumbersUnitTest.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/test/java/com/ossez/java/math/MathUnitTest.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/test/java/com/ossez/lcm/BigIntegerLCMUnitTest.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/test/java/com/ossez/lcm/EuclideanAlgorithmUnitTest.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/test/java/com/ossez/lcm/PrimeFactorizationAlgorithmUnitTest.java (93%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/test/java/com/ossez/lcm/SimpleAlgorithmUnitTest.java (81%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/test/java/com/ossez/lossyconversion/ConversionTechniquesUnitTest.java (100%) rename {java-numbers-2 => parent-java/java-numbers-2}/src/test/java/com/ossez/prime/PrimeGeneratorUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/.gitignore (100%) rename {java-numbers => parent-java/java-numbers}/README.md (100%) rename {java-numbers => parent-java/java-numbers}/pom.xml (94%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/maths/BigDecimalDemo.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/maths/FloatingPointArithmetic.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/maths/Round.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/nth/root/calculator/NthRootCalculator.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/nth/root/main/Main.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/numberofdigits/Benchmarking.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/numberofdigits/NumberOfDigits.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/numberofdigits/NumberOfDigitsDriver.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/pairsaddupnumber/DifferentPairs.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/pairsaddupnumber/ExistingPairs.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/pairsaddupnumber/FindPairs.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/random/SecureRandomDemo.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/java/com/ossez/string/DoubleToString.java (100%) rename {java-numbers => parent-java/java-numbers}/src/main/resources/log4j.properties (100%) rename {java-numbers => parent-java/java-numbers}/src/main/resources/logback.xml (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/decimalformat/DecimalFormatExamplesUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/maths/BigDecimalDemoUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/maths/BigDecimalImplUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/maths/BigIntegerDemoUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/maths/BigIntegerImplUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/maths/FloatingPointArithmeticUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/maths/MathSinUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/maths/RoundUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/nth/root/calculator/NthRootCalculatorUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/nth/root/main/MainUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/numberofdigits/NumberOfDigitsIntegrationTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/pairsaddupnumber/DifferentPairsUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/pairsaddupnumber/ExistingPairsUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/random/JavaRandomUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/removingdecimals/RemovingDecimalsManualTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/removingdecimals/RemovingDecimalsUnitTest.java (100%) rename {java-numbers => parent-java/java-numbers}/src/test/java/com/ossez/string/DoubleToStringUnitTest.java (100%) diff --git a/java-numbers-2/README.md b/parent-java/java-numbers-2/README.md similarity index 100% rename from java-numbers-2/README.md rename to parent-java/java-numbers-2/README.md diff --git a/java-numbers-2/pom.xml b/parent-java/java-numbers-2/pom.xml similarity index 96% rename from java-numbers-2/pom.xml rename to parent-java/java-numbers-2/pom.xml index de25f0bb35..713ea83fa1 100644 --- a/java-numbers-2/pom.xml +++ b/parent-java/java-numbers-2/pom.xml @@ -12,7 +12,6 @@ com.ossez parent-java 0.0.2-SNAPSHOT - ../parent-java diff --git a/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/BigIntegerPrimeChecker.java b/parent-java/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/BigIntegerPrimeChecker.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/BigIntegerPrimeChecker.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/BigIntegerPrimeChecker.java diff --git a/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/BruteForcePrimeChecker.java b/parent-java/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/BruteForcePrimeChecker.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/BruteForcePrimeChecker.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/BruteForcePrimeChecker.java diff --git a/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/OptimisedPrimeChecker.java b/parent-java/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/OptimisedPrimeChecker.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/OptimisedPrimeChecker.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/OptimisedPrimeChecker.java diff --git a/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/PrimeChecker.java b/parent-java/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/PrimeChecker.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/PrimeChecker.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/PrimeChecker.java diff --git a/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/PrimesPrimeChecker.java b/parent-java/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/PrimesPrimeChecker.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/PrimesPrimeChecker.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/algorithms/primechecker/PrimesPrimeChecker.java diff --git a/java-numbers-2/src/main/java/com/ossez/area/circle/Circle.java b/parent-java/java-numbers-2/src/main/java/com/ossez/area/circle/Circle.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/area/circle/Circle.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/area/circle/Circle.java diff --git a/java-numbers-2/src/main/java/com/ossez/area/circle/CircleArea.java b/parent-java/java-numbers-2/src/main/java/com/ossez/area/circle/CircleArea.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/area/circle/CircleArea.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/area/circle/CircleArea.java diff --git a/java-numbers-2/src/main/java/com/ossez/binarynumbers/BinaryNumbers.java b/parent-java/java-numbers-2/src/main/java/com/ossez/binarynumbers/BinaryNumbers.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/binarynumbers/BinaryNumbers.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/binarynumbers/BinaryNumbers.java diff --git a/java-numbers-2/src/main/java/com/ossez/lcm/BigIntegerLCM.java b/parent-java/java-numbers-2/src/main/java/com/ossez/lcm/BigIntegerLCM.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/lcm/BigIntegerLCM.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/lcm/BigIntegerLCM.java diff --git a/java-numbers-2/src/main/java/com/ossez/lcm/EuclideanAlgorithm.java b/parent-java/java-numbers-2/src/main/java/com/ossez/lcm/EuclideanAlgorithm.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/lcm/EuclideanAlgorithm.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/lcm/EuclideanAlgorithm.java diff --git a/java-numbers-2/src/main/java/com/ossez/lcm/PrimeFactorizationAlgorithm.java b/parent-java/java-numbers-2/src/main/java/com/ossez/lcm/PrimeFactorizationAlgorithm.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/lcm/PrimeFactorizationAlgorithm.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/lcm/PrimeFactorizationAlgorithm.java diff --git a/java-numbers-2/src/main/java/com/ossez/lcm/SimpleAlgorithm.java b/parent-java/java-numbers-2/src/main/java/com/ossez/lcm/SimpleAlgorithm.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/lcm/SimpleAlgorithm.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/lcm/SimpleAlgorithm.java diff --git a/java-numbers-2/src/main/java/com/ossez/nan/NaNExample.java b/parent-java/java-numbers-2/src/main/java/com/ossez/nan/NaNExample.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/nan/NaNExample.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/nan/NaNExample.java diff --git a/java-numbers-2/src/main/java/com/ossez/pow/PowerExample.java b/parent-java/java-numbers-2/src/main/java/com/ossez/pow/PowerExample.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/pow/PowerExample.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/pow/PowerExample.java diff --git a/java-numbers-2/src/main/java/com/ossez/prime/PrimeGenerator.java b/parent-java/java-numbers-2/src/main/java/com/ossez/prime/PrimeGenerator.java similarity index 100% rename from java-numbers-2/src/main/java/com/ossez/prime/PrimeGenerator.java rename to parent-java/java-numbers-2/src/main/java/com/ossez/prime/PrimeGenerator.java diff --git a/java-numbers-2/src/test/java/com/ossez/algorithms/primechecker/PrimeCheckerUnitTest.java b/parent-java/java-numbers-2/src/test/java/com/ossez/algorithms/primechecker/PrimeCheckerUnitTest.java similarity index 99% rename from java-numbers-2/src/test/java/com/ossez/algorithms/primechecker/PrimeCheckerUnitTest.java rename to parent-java/java-numbers-2/src/test/java/com/ossez/algorithms/primechecker/PrimeCheckerUnitTest.java index f9d7a33e61..51e5c61523 100644 --- a/java-numbers-2/src/test/java/com/ossez/algorithms/primechecker/PrimeCheckerUnitTest.java +++ b/parent-java/java-numbers-2/src/test/java/com/ossez/algorithms/primechecker/PrimeCheckerUnitTest.java @@ -1,12 +1,10 @@ package com.ossez.algorithms.primechecker; - import org.junit.Test; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; - public class PrimeCheckerUnitTest { private final BigIntegerPrimeChecker primeChecker = new BigIntegerPrimeChecker(); diff --git a/java-numbers-2/src/test/java/com/ossez/binarynumbers/BinaryNumbersUnitTest.java b/parent-java/java-numbers-2/src/test/java/com/ossez/binarynumbers/BinaryNumbersUnitTest.java similarity index 100% rename from java-numbers-2/src/test/java/com/ossez/binarynumbers/BinaryNumbersUnitTest.java rename to parent-java/java-numbers-2/src/test/java/com/ossez/binarynumbers/BinaryNumbersUnitTest.java diff --git a/java-numbers-2/src/test/java/com/ossez/java/math/MathUnitTest.java b/parent-java/java-numbers-2/src/test/java/com/ossez/java/math/MathUnitTest.java similarity index 100% rename from java-numbers-2/src/test/java/com/ossez/java/math/MathUnitTest.java rename to parent-java/java-numbers-2/src/test/java/com/ossez/java/math/MathUnitTest.java diff --git a/java-numbers-2/src/test/java/com/ossez/lcm/BigIntegerLCMUnitTest.java b/parent-java/java-numbers-2/src/test/java/com/ossez/lcm/BigIntegerLCMUnitTest.java similarity index 100% rename from java-numbers-2/src/test/java/com/ossez/lcm/BigIntegerLCMUnitTest.java rename to parent-java/java-numbers-2/src/test/java/com/ossez/lcm/BigIntegerLCMUnitTest.java diff --git a/java-numbers-2/src/test/java/com/ossez/lcm/EuclideanAlgorithmUnitTest.java b/parent-java/java-numbers-2/src/test/java/com/ossez/lcm/EuclideanAlgorithmUnitTest.java similarity index 100% rename from java-numbers-2/src/test/java/com/ossez/lcm/EuclideanAlgorithmUnitTest.java rename to parent-java/java-numbers-2/src/test/java/com/ossez/lcm/EuclideanAlgorithmUnitTest.java diff --git a/java-numbers-2/src/test/java/com/ossez/lcm/PrimeFactorizationAlgorithmUnitTest.java b/parent-java/java-numbers-2/src/test/java/com/ossez/lcm/PrimeFactorizationAlgorithmUnitTest.java similarity index 93% rename from java-numbers-2/src/test/java/com/ossez/lcm/PrimeFactorizationAlgorithmUnitTest.java rename to parent-java/java-numbers-2/src/test/java/com/ossez/lcm/PrimeFactorizationAlgorithmUnitTest.java index 7cb3bbbd92..fc015adb8f 100644 --- a/java-numbers-2/src/test/java/com/ossez/lcm/PrimeFactorizationAlgorithmUnitTest.java +++ b/parent-java/java-numbers-2/src/test/java/com/ossez/lcm/PrimeFactorizationAlgorithmUnitTest.java @@ -6,6 +6,8 @@ import org.junit.Test; import java.util.HashMap; import java.util.Map; +import static com.ossez.lcm.PrimeFactorizationAlgorithm.*; + public class PrimeFactorizationAlgorithmUnitTest { diff --git a/java-numbers-2/src/test/java/com/ossez/lcm/SimpleAlgorithmUnitTest.java b/parent-java/java-numbers-2/src/test/java/com/ossez/lcm/SimpleAlgorithmUnitTest.java similarity index 81% rename from java-numbers-2/src/test/java/com/ossez/lcm/SimpleAlgorithmUnitTest.java rename to parent-java/java-numbers-2/src/test/java/com/ossez/lcm/SimpleAlgorithmUnitTest.java index 05df73c058..6f401d1b8d 100644 --- a/java-numbers-2/src/test/java/com/ossez/lcm/SimpleAlgorithmUnitTest.java +++ b/parent-java/java-numbers-2/src/test/java/com/ossez/lcm/SimpleAlgorithmUnitTest.java @@ -3,6 +3,8 @@ package com.ossez.lcm; import org.junit.Assert; import org.junit.Test; +import static com.ossez.lcm.SimpleAlgorithm.*; + public class SimpleAlgorithmUnitTest { @Test diff --git a/java-numbers-2/src/test/java/com/ossez/lossyconversion/ConversionTechniquesUnitTest.java b/parent-java/java-numbers-2/src/test/java/com/ossez/lossyconversion/ConversionTechniquesUnitTest.java similarity index 100% rename from java-numbers-2/src/test/java/com/ossez/lossyconversion/ConversionTechniquesUnitTest.java rename to parent-java/java-numbers-2/src/test/java/com/ossez/lossyconversion/ConversionTechniquesUnitTest.java diff --git a/java-numbers-2/src/test/java/com/ossez/prime/PrimeGeneratorUnitTest.java b/parent-java/java-numbers-2/src/test/java/com/ossez/prime/PrimeGeneratorUnitTest.java similarity index 100% rename from java-numbers-2/src/test/java/com/ossez/prime/PrimeGeneratorUnitTest.java rename to parent-java/java-numbers-2/src/test/java/com/ossez/prime/PrimeGeneratorUnitTest.java diff --git a/java-numbers/.gitignore b/parent-java/java-numbers/.gitignore similarity index 100% rename from java-numbers/.gitignore rename to parent-java/java-numbers/.gitignore diff --git a/java-numbers/README.md b/parent-java/java-numbers/README.md similarity index 100% rename from java-numbers/README.md rename to parent-java/java-numbers/README.md diff --git a/java-numbers/pom.xml b/parent-java/java-numbers/pom.xml similarity index 94% rename from java-numbers/pom.xml rename to parent-java/java-numbers/pom.xml index a5404a6fee..859bb031f1 100644 --- a/java-numbers/pom.xml +++ b/parent-java/java-numbers/pom.xml @@ -10,8 +10,7 @@ com.ossez parent-java - 0.0.1-SNAPSHOT - ../parent-java + 0.0.2-SNAPSHOT diff --git a/java-numbers/src/main/java/com/ossez/maths/BigDecimalDemo.java b/parent-java/java-numbers/src/main/java/com/ossez/maths/BigDecimalDemo.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/maths/BigDecimalDemo.java rename to parent-java/java-numbers/src/main/java/com/ossez/maths/BigDecimalDemo.java diff --git a/java-numbers/src/main/java/com/ossez/maths/FloatingPointArithmetic.java b/parent-java/java-numbers/src/main/java/com/ossez/maths/FloatingPointArithmetic.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/maths/FloatingPointArithmetic.java rename to parent-java/java-numbers/src/main/java/com/ossez/maths/FloatingPointArithmetic.java diff --git a/java-numbers/src/main/java/com/ossez/maths/Round.java b/parent-java/java-numbers/src/main/java/com/ossez/maths/Round.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/maths/Round.java rename to parent-java/java-numbers/src/main/java/com/ossez/maths/Round.java diff --git a/java-numbers/src/main/java/com/ossez/nth/root/calculator/NthRootCalculator.java b/parent-java/java-numbers/src/main/java/com/ossez/nth/root/calculator/NthRootCalculator.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/nth/root/calculator/NthRootCalculator.java rename to parent-java/java-numbers/src/main/java/com/ossez/nth/root/calculator/NthRootCalculator.java diff --git a/java-numbers/src/main/java/com/ossez/nth/root/main/Main.java b/parent-java/java-numbers/src/main/java/com/ossez/nth/root/main/Main.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/nth/root/main/Main.java rename to parent-java/java-numbers/src/main/java/com/ossez/nth/root/main/Main.java diff --git a/java-numbers/src/main/java/com/ossez/numberofdigits/Benchmarking.java b/parent-java/java-numbers/src/main/java/com/ossez/numberofdigits/Benchmarking.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/numberofdigits/Benchmarking.java rename to parent-java/java-numbers/src/main/java/com/ossez/numberofdigits/Benchmarking.java diff --git a/java-numbers/src/main/java/com/ossez/numberofdigits/NumberOfDigits.java b/parent-java/java-numbers/src/main/java/com/ossez/numberofdigits/NumberOfDigits.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/numberofdigits/NumberOfDigits.java rename to parent-java/java-numbers/src/main/java/com/ossez/numberofdigits/NumberOfDigits.java diff --git a/java-numbers/src/main/java/com/ossez/numberofdigits/NumberOfDigitsDriver.java b/parent-java/java-numbers/src/main/java/com/ossez/numberofdigits/NumberOfDigitsDriver.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/numberofdigits/NumberOfDigitsDriver.java rename to parent-java/java-numbers/src/main/java/com/ossez/numberofdigits/NumberOfDigitsDriver.java diff --git a/java-numbers/src/main/java/com/ossez/pairsaddupnumber/DifferentPairs.java b/parent-java/java-numbers/src/main/java/com/ossez/pairsaddupnumber/DifferentPairs.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/pairsaddupnumber/DifferentPairs.java rename to parent-java/java-numbers/src/main/java/com/ossez/pairsaddupnumber/DifferentPairs.java diff --git a/java-numbers/src/main/java/com/ossez/pairsaddupnumber/ExistingPairs.java b/parent-java/java-numbers/src/main/java/com/ossez/pairsaddupnumber/ExistingPairs.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/pairsaddupnumber/ExistingPairs.java rename to parent-java/java-numbers/src/main/java/com/ossez/pairsaddupnumber/ExistingPairs.java diff --git a/java-numbers/src/main/java/com/ossez/pairsaddupnumber/FindPairs.java b/parent-java/java-numbers/src/main/java/com/ossez/pairsaddupnumber/FindPairs.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/pairsaddupnumber/FindPairs.java rename to parent-java/java-numbers/src/main/java/com/ossez/pairsaddupnumber/FindPairs.java diff --git a/java-numbers/src/main/java/com/ossez/random/SecureRandomDemo.java b/parent-java/java-numbers/src/main/java/com/ossez/random/SecureRandomDemo.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/random/SecureRandomDemo.java rename to parent-java/java-numbers/src/main/java/com/ossez/random/SecureRandomDemo.java diff --git a/java-numbers/src/main/java/com/ossez/string/DoubleToString.java b/parent-java/java-numbers/src/main/java/com/ossez/string/DoubleToString.java similarity index 100% rename from java-numbers/src/main/java/com/ossez/string/DoubleToString.java rename to parent-java/java-numbers/src/main/java/com/ossez/string/DoubleToString.java diff --git a/java-numbers/src/main/resources/log4j.properties b/parent-java/java-numbers/src/main/resources/log4j.properties similarity index 100% rename from java-numbers/src/main/resources/log4j.properties rename to parent-java/java-numbers/src/main/resources/log4j.properties diff --git a/java-numbers/src/main/resources/logback.xml b/parent-java/java-numbers/src/main/resources/logback.xml similarity index 100% rename from java-numbers/src/main/resources/logback.xml rename to parent-java/java-numbers/src/main/resources/logback.xml diff --git a/java-numbers/src/test/java/com/ossez/decimalformat/DecimalFormatExamplesUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/decimalformat/DecimalFormatExamplesUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/decimalformat/DecimalFormatExamplesUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/decimalformat/DecimalFormatExamplesUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/maths/BigDecimalDemoUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/maths/BigDecimalDemoUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/maths/BigDecimalDemoUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/maths/BigDecimalDemoUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/maths/BigDecimalImplUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/maths/BigDecimalImplUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/maths/BigDecimalImplUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/maths/BigDecimalImplUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/maths/BigIntegerDemoUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/maths/BigIntegerDemoUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/maths/BigIntegerDemoUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/maths/BigIntegerDemoUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/maths/BigIntegerImplUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/maths/BigIntegerImplUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/maths/BigIntegerImplUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/maths/BigIntegerImplUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/maths/FloatingPointArithmeticUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/maths/FloatingPointArithmeticUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/maths/FloatingPointArithmeticUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/maths/FloatingPointArithmeticUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/maths/MathSinUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/maths/MathSinUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/maths/MathSinUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/maths/MathSinUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/maths/RoundUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/maths/RoundUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/maths/RoundUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/maths/RoundUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/nth/root/calculator/NthRootCalculatorUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/nth/root/calculator/NthRootCalculatorUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/nth/root/calculator/NthRootCalculatorUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/nth/root/calculator/NthRootCalculatorUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/nth/root/main/MainUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/nth/root/main/MainUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/nth/root/main/MainUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/nth/root/main/MainUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/numberofdigits/NumberOfDigitsIntegrationTest.java b/parent-java/java-numbers/src/test/java/com/ossez/numberofdigits/NumberOfDigitsIntegrationTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/numberofdigits/NumberOfDigitsIntegrationTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/numberofdigits/NumberOfDigitsIntegrationTest.java diff --git a/java-numbers/src/test/java/com/ossez/pairsaddupnumber/DifferentPairsUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/pairsaddupnumber/DifferentPairsUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/pairsaddupnumber/DifferentPairsUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/pairsaddupnumber/DifferentPairsUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/pairsaddupnumber/ExistingPairsUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/pairsaddupnumber/ExistingPairsUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/pairsaddupnumber/ExistingPairsUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/pairsaddupnumber/ExistingPairsUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/random/JavaRandomUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/random/JavaRandomUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/random/JavaRandomUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/random/JavaRandomUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/removingdecimals/RemovingDecimalsManualTest.java b/parent-java/java-numbers/src/test/java/com/ossez/removingdecimals/RemovingDecimalsManualTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/removingdecimals/RemovingDecimalsManualTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/removingdecimals/RemovingDecimalsManualTest.java diff --git a/java-numbers/src/test/java/com/ossez/removingdecimals/RemovingDecimalsUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/removingdecimals/RemovingDecimalsUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/removingdecimals/RemovingDecimalsUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/removingdecimals/RemovingDecimalsUnitTest.java diff --git a/java-numbers/src/test/java/com/ossez/string/DoubleToStringUnitTest.java b/parent-java/java-numbers/src/test/java/com/ossez/string/DoubleToStringUnitTest.java similarity index 100% rename from java-numbers/src/test/java/com/ossez/string/DoubleToStringUnitTest.java rename to parent-java/java-numbers/src/test/java/com/ossez/string/DoubleToStringUnitTest.java diff --git a/parent-java/pom.xml b/parent-java/pom.xml index 08dcf7ecf1..04e2b49c49 100644 --- a/parent-java/pom.xml +++ b/parent-java/pom.xml @@ -14,6 +14,11 @@ 0.0.2-SNAPSHOT + + java-numbers + java-numbers-2 + +