DSA Code written in JAVA
- Download JDK - here
❯ javac -version
javac 23.0.1
❯ java -version
java version "23.0.1" 2024-10-15
Java(TM) SE Runtime Environment (build 23.0.1+11-39)
Java HotSpot(TM) 64-Bit Server VM (build 23.0.1+11-39, mixed mode, sharing)
- VS Code Extension - here
- Enable Format on Save option
- Update Keyboard shortcut:
a. Start Debugging =⌘+'
b. Run Without Debugging =⌘+⏎
(tree -P '*.java') | sed '1s/^/```\n/' | sed '$a\
```' > FILES.md
- Format:
⌘+S
- Debug:
⌘+'
- Run:
⌘+⏎
- Format the document
- Update the directory tree
- Follow the naming convention
javac Rootpath/<filename>.java
java Rootpath/<classname>
- Folder Name = Upper Camel Case ->
DataStructures
- File Name | Class Name = Small Underscore Case ->
min_heap.java
- Method Name | Variable Name = Small Camel Case ->
printHeap()