mirror of
https://github.com/Xevion/contest.git
synced 2025-12-08 06:06:40 -06:00
mark which pieces of Study need work and to be finished
This commit is contained in:
@@ -28,18 +28,18 @@ If you find something incorrect, feel free to contribute and modify.
|
||||
- [Guidelines](#guidelines)
|
||||
- [Most Common Imports](#most-common-imports)
|
||||
- [Declare, Instantiate, Initialize](#declare-instantiate-initialize)
|
||||
- [Default Array Values](#default-array-values)
|
||||
- [Primitive Arrays](#primitive-arrays)
|
||||
- [ArrayList Arrays](#arraylist-arrays)
|
||||
- [!!! Default Array Values](#-default-array-values)
|
||||
- [!!! Primitive Arrays](#-primitive-arrays)
|
||||
- [!!! ArrayList Arrays](#-arraylist-arrays)
|
||||
- [When Primitive Array Casts Are Required](#when-primitive-array-casts-are-required)
|
||||
- [Basic Boolean Circuitry](#basic-boolean-circuitry)
|
||||
- [How to Rotate Matrixes](#how-to-rotate-matrixes)
|
||||
- [Boolean Truth Tables & Symbols](#boolean-truth-tables--symbols)
|
||||
- [Bitwise Meanings](#bitwise-meanings)
|
||||
- [How to Sort Different Types of Arrays](#how-to-sort-different-types-of-arrays)
|
||||
- [Primitives](#primitives)
|
||||
- [List Implementers (ArrayList, ?, ?..)](#list-implementers-arraylist--)
|
||||
- [char And int Are Interchangeable](#char-and-int-are-interchangeable)
|
||||
- [!!! Basic Boolean Circuitry](#-basic-boolean-circuitry)
|
||||
- [!!! How to Rotate Matrixes](#-how-to-rotate-matrixes)
|
||||
- [!!! Boolean Truth Tables & Symbols](#-boolean-truth-tables--symbols)
|
||||
- [!!! Bitwise Meanings](#-bitwise-meanings)
|
||||
- [!!! How to Sort Different Types of Arrays](#-how-to-sort-different-types-of-arrays)
|
||||
- [!!! Primitives](#-primitives)
|
||||
- [!!! List Implementers (ArrayList, ?, ?..)](#-list-implementers-arraylist--)
|
||||
- [!!! char And int Are Interchangeable](#-char-and-int-are-interchangeable)
|
||||
- [Classes Call From Where They Originate](#classes-call-from-where-they-originate)
|
||||
- [`List.remove(int i)` Element Shifting](#listremoveint-i-element-shifting)
|
||||
- [`List.set(int i, Object obj)` requires a element to function](#listsetint-i-object-obj-requires-a-element-to-function)
|
||||
@@ -52,7 +52,7 @@ If you find something incorrect, feel free to contribute and modify.
|
||||
- [`hasNext` and `hasNextInt`](#hasnext-and-hasnextint)
|
||||
- [`next` and `nextInt`](#next-and-nextint)
|
||||
- [Examples with Explanations](#examples-with-explanations)
|
||||
- [Post-increment and Post-decrement Order is Important](#post-increment-and-post-decrement-order-is-important)
|
||||
- [!!! Post-increment and Post-decrement Order is Important](#-post-increment-and-post-decrement-order-is-important)
|
||||
|
||||
<!-- /TOC -->
|
||||
|
||||
@@ -385,13 +385,13 @@ import java.util.Arrays;
|
||||
}
|
||||
```
|
||||
|
||||
### Default Array Values
|
||||
### !!! Default Array Values
|
||||
|
||||
#### Primitive Arrays
|
||||
#### !!! Primitive Arrays
|
||||
|
||||
[Run on Repl.it](https://repl.it/@Xevion/PrimitiveArrayNullOrZero)
|
||||
|
||||
#### ArrayList Arrays
|
||||
#### !!! ArrayList Arrays
|
||||
|
||||
### When Primitive Array Casts Are Required
|
||||
|
||||
@@ -420,25 +420,25 @@ static String[] method2() {
|
||||
|
||||
It also expects a `new`, not just `String[]` before the *literal* part of a literal array definition.
|
||||
|
||||
### Basic Boolean Circuitry
|
||||
### !!! Basic Boolean Circuitry
|
||||
|
||||
### How to Rotate Matrixes
|
||||
### !!! How to Rotate Matrixes
|
||||
|
||||
### Boolean Truth Tables & Symbols
|
||||
### !!! Boolean Truth Tables & Symbols
|
||||
|
||||
### Bitwise Meanings
|
||||
### !!! Bitwise Meanings
|
||||
|
||||
### How to Sort Different Types of Arrays
|
||||
### !!! How to Sort Different Types of Arrays
|
||||
|
||||
For arrays, they can be sorted using `Arrays.sort` from `java.util.Arrays`.
|
||||
|
||||
For lists, one can use `Collections.sort` to sort any class that implements the `List` interface.
|
||||
|
||||
#### Primitives
|
||||
#### !!! Primitives
|
||||
|
||||
#### List Implementers (ArrayList, ?, ?..)
|
||||
#### !!! List Implementers (ArrayList, ?, ?..)
|
||||
|
||||
### char And int Are Interchangeable
|
||||
### !!! char And int Are Interchangeable
|
||||
|
||||
```
|
||||
void method(int a, char b)
|
||||
@@ -634,7 +634,7 @@ for(int i = 0; i++ < 5;)
|
||||
The Scanner will throw an exception while trying to parse `h` for an Integer. This is why `hasNextInt` is used, besides ensuring the Scanner input is not exhausted.
|
||||
|
||||
|
||||
### Post-increment and Post-decrement Order is Important
|
||||
### !!! Post-increment and Post-decrement Order is Important
|
||||
|
||||
```java
|
||||
public static int m(int x, int y) {
|
||||
|
||||
Reference in New Issue
Block a user