GitHub Wiki - Yash-777/LearnJava GitHub Wiki

Images [๐Ÿ’ช ๐Ÿงฌ ๐Ÿ”ข ]

โœ… Yes, ๐Ÿ’ก Idea, ๐Ÿ” search ๐Ÿ“š Summary ๐Ÿงช Sample ๐Ÿ”‘ Key, ๐Ÿ” Author/Secure ๐Ÿ“ฆ Package, ๐Ÿงพ Full JavaDoc, โš™๏ธ Setting / .java file, ๐Ÿ›  Refactored


Tables

Single line code

Code Information
String s = "Yash"; String literal

๐Ÿ’ก A blank/empty line that contains only whitespace (such as tabs or spaces) inside a <pre> block can cause formatting or rendering issues, like:

  • Collapsed formatting
  • Misaligned indentation
  • Extra spacing or unexpected behavior in GitHub Wiki
Header 1 Header 2
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}
      
public class Calculator {
    public int add(int a, int b) {
        return a + b;
    }
}
      
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

Task lists

- [x] #739
- [ ] Add delight to the experience when all tasks are complete ๐ŸŽ‰
  • #739
  • Add delight to the experience when all tasks are complete ๐ŸŽ‰

Using emojis

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

@octocat ๐Ÿ‘ This PR looks great - it's ready to merge! :shipit:


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

Note

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

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

Tip

Helpful advice for doing things better or more easily.

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

Important

Key information users need to know to achieve their goal.

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

Warning

Urgent info that needs immediate user attention to avoid problems.

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

Caution

Advises about risks or negative outcomes of certain actions.


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** โš ๏ธ