| title | Java Knowledge Base |
|---|---|
| description | Personal Java cheat sheet with summaries, syntax, and key concepts. |
| author | cristianbyte |
/* This is an example of multi-line comment. */
import java.util.Scanner;
// create an object of Scanner
Scanner input = new Scanner(System.in);
// take input from the user
int number = input.nextInt();
// closing the scanner object
input.close();condition ? expression1 : expression2;
Note: It is not recommended to use nested ternary operators. This is because it makes our code more complex.
flowchart LR
subgraph Java Application
A(JDBC API)
end
A --> B(JDBC Driver Manager) --> C(JDBC Driver) --> D[(MySQL)]
I focus on creating simple, clean, and understandable Java code thatβs easy for everyone to work with.
Follow me on GitHub:@cristianbyte π