Merge pull request #7963 from catalin-burcea/BAEL-15996
[BAEL-15996] Move articles out of core-java-lang part 2
This commit is contained in:
commit
8d940062ca
|
@ -7,7 +7,6 @@ This module contains articles about Object-oriented programming (OOP) in Java
|
|||
- [Cannot Reference “X” Before Supertype Constructor Has Been Called](https://www.baeldung.com/java-cannot-reference-x-before-supertype-constructor-error)
|
||||
- [Anonymous Classes in Java](https://www.baeldung.com/java-anonymous-classes)
|
||||
- [Raw Types in Java](https://www.baeldung.com/raw-types-java)
|
||||
- [Java ‘private’ Access Modifier](https://www.baeldung.com/java-private-keyword)
|
||||
- [Marker Interfaces in Java](https://www.baeldung.com/java-marker-interfaces)
|
||||
- [Java equals() and hashCode() Contracts](https://www.baeldung.com/java-equals-hashcode-contracts)
|
||||
- [Immutable Objects in Java](https://www.baeldung.com/java-immutable-object)
|
||||
|
|
|
@ -4,3 +4,4 @@
|
|||
- [The Modulo Operator in Java](https://www.baeldung.com/modulo-java)
|
||||
- [Java instanceof Operator](https://www.baeldung.com/java-instanceof)
|
||||
- [A Guide to Increment and Decrement Unary Operators in Java](https://www.baeldung.com/java-unary-operators)
|
||||
- [Java Compound Operators](https://www.baeldung.com/java-compound-operators)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.java.diamond;
|
||||
package com.baeldung.diamondoperator;
|
||||
|
||||
public class Car<T extends Engine> implements Vehicle<T> {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.java.diamond;
|
||||
package com.baeldung.diamondoperator;
|
||||
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.java.diamond;
|
||||
package com.baeldung.diamondoperator;
|
||||
|
||||
public class Diesel implements Engine {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.java.diamond;
|
||||
package com.baeldung.diamondoperator;
|
||||
|
||||
public interface Engine {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.java.diamond;
|
||||
package com.baeldung.diamondoperator;
|
||||
|
||||
public interface Vehicle<T extends Engine> {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.keyword.test;
|
||||
package com.baeldung.keyword;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.jupiter.api.Test;
|
|
@ -5,4 +5,10 @@ This module contains articles about Java syntax
|
|||
### Relevant Articles:
|
||||
|
||||
- [Java ‘private’ Access Modifier](https://www.baeldung.com/java-private-keyword)
|
||||
- [Guide to Java Packages](https://www.baeldung.com/java-packages)
|
||||
- [If-Else Statement in Java](https://www.baeldung.com/java-if-else)
|
||||
- [Control Structures in Java](https://www.baeldung.com/java-control-structures)
|
||||
- [Java Double Brace Initialization](https://www.baeldung.com/java-double-brace-initialization)
|
||||
- [The Java Native Keyword and Methods](https://www.baeldung.com/java-native)
|
||||
- [Variable Scope in Java](https://www.baeldung.com/java-variable-scope)
|
||||
- [[<-- Prev]](/core-java-modules/core-java-lang-syntax)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.controlstructures;
|
||||
package com.baeldung.core.controlstructures;
|
||||
|
||||
public class ConditionalBranches {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.controlstructures;
|
||||
package com.baeldung.core.controlstructures;
|
||||
|
||||
public class Loops {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.nativekeyword;
|
||||
package com.baeldung.core.nativekeyword;
|
||||
|
||||
public class DateTimeUtils {
|
||||
|
|
@ -1,6 +1,4 @@
|
|||
package com.baeldung.nativekeyword;
|
||||
|
||||
import com.baeldung.nativekeyword.DateTimeUtils;
|
||||
package com.baeldung.core.nativekeyword;
|
||||
|
||||
public class NativeMainApp {
|
||||
public static void main(String[] args) {
|
|
@ -1,9 +1,9 @@
|
|||
package com.baeldung.packages;
|
||||
package com.baeldung.core.packages;
|
||||
|
||||
import com.baeldung.core.packages.domain.TodoItem;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
import com.baeldung.packages.domain.TodoItem;
|
||||
|
||||
public class TodoApp {
|
||||
|
||||
public static void main(String[] args) {
|
|
@ -1,10 +1,10 @@
|
|||
package com.baeldung.packages;
|
||||
package com.baeldung.core.packages;
|
||||
|
||||
import com.baeldung.core.packages.domain.TodoItem;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.baeldung.packages.domain.TodoItem;
|
||||
|
||||
public class TodoList {
|
||||
private List<TodoItem> todoItems;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.packages.domain;
|
||||
package com.baeldung.core.packages.domain;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.core.modifiers;
|
||||
package com.baeldung.core.privatemodifier;
|
||||
|
||||
public class Employee {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.core.modifiers;
|
||||
package com.baeldung.core.privatemodifier;
|
||||
|
||||
public class ExampleClass {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.core.modifiers;
|
||||
package com.baeldung.core.privatemodifier;
|
||||
|
||||
public class PublicOuterClass {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.scope;
|
||||
package com.baeldung.core.scope;
|
||||
|
||||
public class BracketScopeExample {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.scope;
|
||||
package com.baeldung.core.scope;
|
||||
|
||||
public class ClassScopeExample {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.scope;
|
||||
package com.baeldung.core.scope;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.scope;
|
||||
package com.baeldung.core.scope;
|
||||
|
||||
public class MethodScopeExample {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.scope;
|
||||
package com.baeldung.core.scope;
|
||||
|
||||
public class NestedScopesExample {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.java.doublebrace;
|
||||
package com.baeldung.core.doublebrace;
|
||||
|
||||
import org.junit.Test;
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
package com.baeldung.nativekeyword;
|
||||
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
package com.baeldung.core.nativekeyword;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
public class DateTimeUtilsManualTest {
|
||||
|
||||
private static final Logger LOG = org.slf4j.LoggerFactory.getLogger(DateTimeUtilsManualTest.class);
|
|
@ -1,12 +1,11 @@
|
|||
package com.baeldung.packages;
|
||||
package com.baeldung.core.packages;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import com.baeldung.core.packages.domain.TodoItem;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.baeldung.packages.domain.TodoItem;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class PackagesUnitTest {
|
||||
|
|
@ -3,20 +3,14 @@
|
|||
This module contains articles about Java syntax
|
||||
|
||||
### Relevant Articles:
|
||||
- [The Basics of Java Generics](http://www.baeldung.com/java-generics)
|
||||
- [Java Primitive Conversions](http://www.baeldung.com/java-primitive-conversions)
|
||||
- [Java Double Brace Initialization](http://www.baeldung.com/java-double-brace-initialization)
|
||||
- [Guide to the Diamond Operator in Java](http://www.baeldung.com/java-diamond-operator)
|
||||
- [The Java continue and break Keywords](http://www.baeldung.com/java-continue-and-break)
|
||||
- [A Guide to Creating Objects in Java](http://www.baeldung.com/java-initialization)
|
||||
- [A Guide to Java Loops](http://www.baeldung.com/java-loops)
|
||||
- [Varargs in Java](http://www.baeldung.com/java-varargs)
|
||||
- [A Guide to Java Enums](http://www.baeldung.com/a-guide-to-java-enums)
|
||||
- [Infinite Loops in Java](http://www.baeldung.com/infinite-loops-java)
|
||||
- [Quick Guide to java.lang.System](http://www.baeldung.com/java-lang-system)
|
||||
- [The Basics of Java Generics](https://www.baeldung.com/java-generics)
|
||||
- [Java Primitive Conversions](https://www.baeldung.com/java-primitive-conversions)
|
||||
- [The Java continue and break Keywords](https://www.baeldung.com/java-continue-and-break)
|
||||
- [A Guide to Creating Objects in Java](https://www.baeldung.com/java-initialization)
|
||||
- [A Guide to Java Loops](https://www.baeldung.com/java-loops)
|
||||
- [Varargs in Java](https://www.baeldung.com/java-varargs)
|
||||
- [A Guide to Java Enums](https://www.baeldung.com/a-guide-to-java-enums)
|
||||
- [Infinite Loops in Java](https://www.baeldung.com/infinite-loops-java)
|
||||
- [Java Switch Statement](https://www.baeldung.com/java-switch)
|
||||
- [The Modulo Operator in Java](https://www.baeldung.com/modulo-java)
|
||||
- [Ternary Operator In Java](https://www.baeldung.com/java-ternary-operator)
|
||||
- [Java instanceof Operator](https://www.baeldung.com/java-instanceof)
|
||||
- [Breaking Out of Nested Loops](https://www.baeldung.com/java-breaking-out-nested-loop)
|
||||
- [[More -->]](/core-java-modules/core-java-lang-syntax-2)
|
||||
|
|
|
@ -12,7 +12,7 @@ import org.junit.Assert;
|
|||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
public class WhenUsingLoops {
|
||||
public class LoopsUnitTest {
|
||||
|
||||
private LoopsInJava loops = new LoopsInJava();
|
||||
private static List<String> list = new ArrayList<>();
|
|
@ -6,29 +6,19 @@ This module contains articles about core features in the Java language
|
|||
|
||||
- [Generate equals() and hashCode() with Eclipse](https://www.baeldung.com/java-eclipse-equals-and-hashcode)
|
||||
- [Iterating Over Enum Values in Java](https://www.baeldung.com/java-enum-iteration)
|
||||
- [Java Double Brace Initialization](https://www.baeldung.com/java-double-brace-initialization)
|
||||
- [Guide to the Diamond Operator in Java](https://www.baeldung.com/java-diamond-operator)
|
||||
- [Comparator and Comparable in Java](https://www.baeldung.com/java-comparator-comparable)
|
||||
- [The Java continue and break Keywords](https://www.baeldung.com/java-continue-and-break)
|
||||
- [Nested Classes in Java](https://www.baeldung.com/java-nested-classes)
|
||||
- [A Guide to Inner Interfaces in Java](https://www.baeldung.com/java-inner-interfaces)
|
||||
- [Recursion In Java](https://www.baeldung.com/java-recursion)
|
||||
- [A Guide to the finalize Method in Java](https://www.baeldung.com/java-finalize)
|
||||
- [Infinite Loops in Java](https://www.baeldung.com/infinite-loops-java)
|
||||
- [Quick Guide to java.lang.System](https://www.baeldung.com/java-lang-system)
|
||||
- [Using Java Assertions](https://www.baeldung.com/java-assert)
|
||||
- [Static and Dynamic Binding in Java](https://www.baeldung.com/java-static-dynamic-binding)
|
||||
- [Synthetic Constructs in Java](https://www.baeldung.com/java-synthetic)
|
||||
- [How to Separate Double into Integer and Decimal Parts](https://www.baeldung.com/java-separate-double-into-integer-decimal-parts)
|
||||
- [Retrieving a Class Name in Java](https://www.baeldung.com/java-class-name)
|
||||
- [Java Compound Operators](https://www.baeldung.com/java-compound-operators)
|
||||
- [Guide to Java Packages](https://www.baeldung.com/java-packages)
|
||||
- [The Java Native Keyword and Methods](https://www.baeldung.com/java-native)
|
||||
- [If-Else Statement in Java](https://www.baeldung.com/java-if-else)
|
||||
- [Control Structures in Java](https://www.baeldung.com/java-control-structures)
|
||||
- [Java Interfaces](https://www.baeldung.com/java-interfaces)
|
||||
- [Attaching Values to Java Enum](https://www.baeldung.com/java-enum-values)
|
||||
- [Variable Scope in Java](https://www.baeldung.com/java-variable-scope)
|
||||
- [Java Classes and Objects](https://www.baeldung.com/java-classes-objects)
|
||||
- [A Guide to Java Enums](https://www.baeldung.com/a-guide-to-java-enums)
|
||||
- [[More --> ]](/core-java-modules/core-java-lang-2)
|
Loading…
Reference in New Issue