Skip to content

Commit cc8a193

Browse files
ErikSchierboommirkoperillo
authored andcommitted
Add concept headings to introduction.md
1 parent ab2cf5c commit cc8a193

13 files changed

Lines changed: 26 additions & 0 deletions

File tree

exercises/concept/arrays/.docs/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## arrays
2+
13
In Java, data structures that can hold zero or more elements are known as _collections_. An **array** is a collection that has a fixed size/length and whose elements must all be of the same type. Elements can be assigned to an array or retrieved from it using an index. Java arrays are zero-based, meaning that the first element's index is always zero:
24

35
```java

exercises/concept/basics/.docs/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## basics
2+
13
Java is a statically-typed language, which means that everything has a type at compile-time. Assigning a value to a name is referred to as defining a variable. A variable is defined by explicitly specifying its type.
24

35
```java
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## booleans
2+
13
Booleans in Java are represented by the `boolean` type, which values can be either `true` or `false`.
24

35
Java supports three boolean operators: `!` (NOT), `&&` (AND), and `||` (OR).

exercises/concept/chars/.docs/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## chars
2+
13
The Java `char` type represents the smallest addressable components of text.
24
Multiple `char`s can comprise a string such as `"word"` or `char`s can be
35
processed independently. Their literals have single quotes e.g. `'A'`.

exercises/concept/classes/.docs/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## classes
2+
13
The primary object-oriented construct in Java is the _class_, which is a combination of data (_fields_) and behavior (_methods_). The fields and methods of a class are known as its _members_.
24

35
Access to members can be controlled through access modifiers, the two most common ones being:

exercises/concept/conditionals/.docs/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## conditionals-if
2+
13
## Logical Operators
24

35
Java supports the three logical operators `&&` (AND), `||` (OR), and `!` (NOT).

exercises/concept/constructors/.docs/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## constructors
2+
13
Creating an instance of a _class_ is done by calling its _constructor_ through the `new` operator. A constructor is a special type of method whose goal is to initialize a newly created instance. Constructors look like regular methods, but without a return type and with a name that matches the classes' name.
24

35
```java

exercises/concept/inheritance/.docs/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## inheritance
2+
13
Inheritance is a core concept in OOP (Object Oriented Programming). It donates IS-A relationship.
24
It literally means in programming as it means in english, inheriting features from parent(in programming features is normally functions
35
and variables).

exercises/concept/interfaces/.docs/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## interfaces
2+
13
An interface is a type containing members defining a group of related functionality. It distances the uses of a class from the implementation allowing multiple different implementations or support for some generic behavior such as formatting, comparison or conversion.
24

35
The syntax of an interface is similar to that of a class except that methods appear as the signature only and no body is provided.

exercises/concept/numbers/.docs/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## numbers
2+
13
There are two different types of numbers in Java:
24

35
- Integers: numbers with no digits behind the decimal separator (whole numbers). Examples are `-6`, `0`, `1`, `25`, `976` and `-500000`.

0 commit comments

Comments
 (0)