Skip to content

Latest commit

 

History

History
75 lines (53 loc) · 1.07 KB

File metadata and controls

75 lines (53 loc) · 1.07 KB

Code Blocks

Why?

Useful for documenting our Shit Code.

Syntax:

    1. Indentation using Tab
    
    2. <TEXT> `<CODE HERE>` <TEXT> ?
    
    3. 
        ```
        <CODE HERE>
        ```

    
    4. 
        ```<LANGUAGE>
        <CODE HERE>
        ``` 

    5. 
        ```diff
        <CODE HERE>
        + <MODIFIED CODE>
        - <DELETED CODE>
        ```


1.

public class Cat{
    public static void main(String[] args){
        System.out.println("Meow");
    }
}


2.

Would this int a = input.nextInt(); ?


3.

public class Cat{
        public static void main(String[] args){
            System.out.println("Meow");
        }
}


4.

public class Cat{
        public static void main(String[] args){
            System.out.println("Meow");
        }
}


5.

public class Cat{
        public static void main(String[] args){
+            System.out.println("Purr");
-            System.out.println("Meow")
        }
}