Move articles out of core-java-lang part 2

This commit is contained in:
catalin-burcea 2019-10-06 15:57:30 +03:00
parent 7cbe9ac12c
commit 6b80543360
43 changed files with 49 additions and 62 deletions

View File

@ -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) - [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) - [Anonymous Classes in Java](https://www.baeldung.com/java-anonymous-classes)
- [Raw Types in Java](https://www.baeldung.com/raw-types-java) - [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) - [Marker Interfaces in Java](https://www.baeldung.com/java-marker-interfaces)
- [Java equals() and hashCode() Contracts](https://www.baeldung.com/java-equals-hashcode-contracts) - [Java equals() and hashCode() Contracts](https://www.baeldung.com/java-equals-hashcode-contracts)
- [Immutable Objects in Java](https://www.baeldung.com/java-immutable-object) - [Immutable Objects in Java](https://www.baeldung.com/java-immutable-object)

View File

@ -4,3 +4,4 @@
- [The Modulo Operator in Java](https://www.baeldung.com/modulo-java) - [The Modulo Operator in Java](https://www.baeldung.com/modulo-java)
- [Java instanceof Operator](https://www.baeldung.com/java-instanceof) - [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) - [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)

View File

@ -1,4 +1,4 @@
package com.baeldung.java.diamond; package com.baeldung.diamondoperator;
public class Car<T extends Engine> implements Vehicle<T> { public class Car<T extends Engine> implements Vehicle<T> {

View File

@ -1,4 +1,4 @@
package com.baeldung.java.diamond; package com.baeldung.diamondoperator;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;

View File

@ -1,4 +1,4 @@
package com.baeldung.java.diamond; package com.baeldung.diamondoperator;
public class Diesel implements Engine { public class Diesel implements Engine {

View File

@ -1,4 +1,4 @@
package com.baeldung.java.diamond; package com.baeldung.diamondoperator;
public interface Engine { public interface Engine {

View File

@ -1,4 +1,4 @@
package com.baeldung.java.diamond; package com.baeldung.diamondoperator;
public interface Vehicle<T extends Engine> { public interface Vehicle<T extends Engine> {

View File

@ -1,4 +1,4 @@
package com.baeldung.keyword.test; package com.baeldung.keyword;
import org.junit.Assert; import org.junit.Assert;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;

View File

@ -5,4 +5,10 @@ This module contains articles about Java syntax
### Relevant Articles: ### Relevant Articles:
- [Java private Access Modifier](https://www.baeldung.com/java-private-keyword) - [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) - [[<-- Prev]](/core-java-modules/core-java-lang-syntax)

View File

@ -1,4 +1,4 @@
package com.baeldung.controlstructures; package com.baeldung.core.controlstructures;
public class ConditionalBranches { public class ConditionalBranches {

View File

@ -1,4 +1,4 @@
package com.baeldung.controlstructures; package com.baeldung.core.controlstructures;
public class Loops { public class Loops {

View File

@ -1,4 +1,4 @@
package com.baeldung.nativekeyword; package com.baeldung.core.nativekeyword;
public class DateTimeUtils { public class DateTimeUtils {

View File

@ -1,6 +1,4 @@
package com.baeldung.nativekeyword; package com.baeldung.core.nativekeyword;
import com.baeldung.nativekeyword.DateTimeUtils;
public class NativeMainApp { public class NativeMainApp {
public static void main(String[] args) { public static void main(String[] args) {

View File

@ -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 java.time.LocalDate;
import com.baeldung.packages.domain.TodoItem;
public class TodoApp { public class TodoApp {
public static void main(String[] args) { public static void main(String[] args) {

View File

@ -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.ArrayList;
import java.util.List; import java.util.List;
import com.baeldung.packages.domain.TodoItem;
public class TodoList { public class TodoList {
private List<TodoItem> todoItems; private List<TodoItem> todoItems;

View File

@ -1,4 +1,4 @@
package com.baeldung.packages.domain; package com.baeldung.core.packages.domain;
import java.time.LocalDate; import java.time.LocalDate;

View File

@ -1,4 +1,4 @@
package com.baeldung.core.modifiers; package com.baeldung.core.privatemodifier;
public class Employee { public class Employee {

View File

@ -1,4 +1,4 @@
package com.baeldung.core.modifiers; package com.baeldung.core.privatemodifier;
public class ExampleClass { public class ExampleClass {

View File

@ -1,4 +1,4 @@
package com.baeldung.core.modifiers; package com.baeldung.core.privatemodifier;
public class PublicOuterClass { public class PublicOuterClass {

View File

@ -1,4 +1,4 @@
package com.baeldung.scope; package com.baeldung.core.scope;
public class BracketScopeExample { public class BracketScopeExample {

View File

@ -1,4 +1,4 @@
package com.baeldung.scope; package com.baeldung.core.scope;
public class ClassScopeExample { public class ClassScopeExample {

View File

@ -1,4 +1,4 @@
package com.baeldung.scope; package com.baeldung.core.scope;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.scope; package com.baeldung.core.scope;
public class MethodScopeExample { public class MethodScopeExample {

View File

@ -1,4 +1,4 @@
package com.baeldung.scope; package com.baeldung.core.scope;
public class NestedScopesExample { public class NestedScopesExample {

View File

@ -1,4 +1,4 @@
package com.baeldung.java.doublebrace; package com.baeldung.core.doublebrace;
import org.junit.Test; import org.junit.Test;

View File

@ -1,11 +1,11 @@
package com.baeldung.nativekeyword; package com.baeldung.core.nativekeyword;
import static org.junit.Assert.assertNotNull;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
import org.slf4j.Logger; import org.slf4j.Logger;
import static org.junit.Assert.assertNotNull;
public class DateTimeUtilsManualTest { public class DateTimeUtilsManualTest {
private static final Logger LOG = org.slf4j.LoggerFactory.getLogger(DateTimeUtilsManualTest.class); private static final Logger LOG = org.slf4j.LoggerFactory.getLogger(DateTimeUtilsManualTest.class);

View File

@ -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 java.time.LocalDate;
import org.junit.Test; import static org.junit.Assert.assertEquals;
import com.baeldung.packages.domain.TodoItem;
public class PackagesUnitTest { public class PackagesUnitTest {

View File

@ -3,20 +3,14 @@
This module contains articles about Java syntax This module contains articles about Java syntax
### Relevant Articles: ### Relevant Articles:
- [The Basics of Java Generics](http://www.baeldung.com/java-generics) - [The Basics of Java Generics](https://www.baeldung.com/java-generics)
- [Java Primitive Conversions](http://www.baeldung.com/java-primitive-conversions) - [Java Primitive Conversions](https://www.baeldung.com/java-primitive-conversions)
- [Java Double Brace Initialization](http://www.baeldung.com/java-double-brace-initialization) - [The Java continue and break Keywords](https://www.baeldung.com/java-continue-and-break)
- [Guide to the Diamond Operator in Java](http://www.baeldung.com/java-diamond-operator) - [A Guide to Creating Objects in Java](https://www.baeldung.com/java-initialization)
- [The Java continue and break Keywords](http://www.baeldung.com/java-continue-and-break) - [A Guide to Java Loops](https://www.baeldung.com/java-loops)
- [A Guide to Creating Objects in Java](http://www.baeldung.com/java-initialization) - [Varargs in Java](https://www.baeldung.com/java-varargs)
- [A Guide to Java Loops](http://www.baeldung.com/java-loops) - [A Guide to Java Enums](https://www.baeldung.com/a-guide-to-java-enums)
- [Varargs in Java](http://www.baeldung.com/java-varargs) - [Infinite Loops in Java](https://www.baeldung.com/infinite-loops-java)
- [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)
- [Java Switch Statement](https://www.baeldung.com/java-switch) - [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) - [Breaking Out of Nested Loops](https://www.baeldung.com/java-breaking-out-nested-loop)
- [[More -->]](/core-java-modules/core-java-lang-syntax-2) - [[More -->]](/core-java-modules/core-java-lang-syntax-2)

View File

@ -12,7 +12,7 @@ import org.junit.Assert;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
public class WhenUsingLoops { public class LoopsUnitTest {
private LoopsInJava loops = new LoopsInJava(); private LoopsInJava loops = new LoopsInJava();
private static List<String> list = new ArrayList<>(); private static List<String> list = new ArrayList<>();

View File

@ -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) - [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) - [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) - [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) - [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) - [A Guide to Inner Interfaces in Java](https://www.baeldung.com/java-inner-interfaces)
- [Recursion In Java](https://www.baeldung.com/java-recursion) - [Recursion In Java](https://www.baeldung.com/java-recursion)
- [A Guide to the finalize Method in Java](https://www.baeldung.com/java-finalize) - [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) - [Quick Guide to java.lang.System](https://www.baeldung.com/java-lang-system)
- [Using Java Assertions](https://www.baeldung.com/java-assert) - [Using Java Assertions](https://www.baeldung.com/java-assert)
- [Static and Dynamic Binding in Java](https://www.baeldung.com/java-static-dynamic-binding) - [Static and Dynamic Binding in Java](https://www.baeldung.com/java-static-dynamic-binding)
- [Synthetic Constructs in Java](https://www.baeldung.com/java-synthetic) - [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) - [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) - [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) - [Java Interfaces](https://www.baeldung.com/java-interfaces)
- [Attaching Values to Java Enum](https://www.baeldung.com/java-enum-values) - [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) - [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) - [A Guide to Java Enums](https://www.baeldung.com/a-guide-to-java-enums)
- [[More --> ]](/core-java-modules/core-java-lang-2) - [[More --> ]](/core-java-modules/core-java-lang-2)