GitHub Wiki - Yash-777/LearnJava GitHub Wiki

- [x] #739
- [ ] Add delight to the experience when all tasks are complete :tada:
  • #739
  • Add delight to the experience when all tasks are complete 🎉
@octocat :+1: This PR looks great - it's ready to merge! :shipit:

@octocat 👍 This PR looks great - it's ready to merge! :shipit:

> [!NOTE]
> Useful information that users should know, even when skimming content.

> [!TIP]
> Helpful advice for doing things better or more easily.

> [!IMPORTANT]
> Key information users need to know to achieve their goal.

> [!WARNING]
> Urgent info that needs immediate user attention to avoid problems.

> [!CAUTION]
> Advises about risks or negative outcomes of certain actions.

Note

Useful information that users should know, even when skimming content.

Tip

Helpful advice for doing things better or more easily.

Important

Key information users need to know to achieve their goal.

Warning

Urgent info that needs immediate user attention to avoid problems.

Caution

Advises about risks or negative outcomes of certain actions.

Tables

Single line code

Code Information
String s = "Yash"; String literal
<table>
  <tr>
    <th>Header 1</th>
    <th>Header 2</th>
  </tr>

<tr>
<td><pre><code>

Java code

</code></pre></td>
<td>

<img src="https://user-images.githubusercontent.com/17373064/224510169-6b318147-4bb0-4cb3-a7b4-a180502d21b9.png" alt="image">

</td>
</tr>

</table>

Multi-Line Code

Stream Stream in Detail oracle article

List transactionsIds = 
    transactions.stream()
                .filter(t -> t.getType() == Transaction.GROCERY)
                .sorted(comparing(Transaction::getValue).reversed())
                .map(Transaction::getId)
                .collect(toList());
image

Example Collapsible Content

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets

NB: Make sure you have an empty line after the closing tag, otherwise the markdown/code blocks won't show correctly.

Click to expand!
function logSometing(something) {
   console.log(`Logging: ${something}`);
}
Click to close! - Already open...
function logSometing(something) {
   console.log(`Logging: ${something}`);
}
Click to see more:
Given the following python code
from pychartjs import BaseChart

class myChart(BaseChart):
    pass
chartJSON = myChart().get()

Write the following HTML
<div class="container">
   <canvas id="myChart"></canvas>
</div>
... and JS
var data = {{ chartJSON | safe }}
var ctx = document.getElementById("myChart").getContext('2d');
var myChart = new Chart(ctx, data);

⚠️ **GitHub.com Fallback** ⚠️