Nov 25, 2024
Java Development Kit (JDK):
Integrated Development Environment (IDE):
Packages:
Java Programs:
Comments:
/* comment */// commentPrinting to Console:
System.out.println("text").Variables and Data Types:
Operators:
If statement:
if (condition) { // code }else if and else for multiple conditions.Switch Case:
switch(variable) { case value: // code; break; }int and String types.For Loop:
for (initialization; condition; increment) { // code }While Loop:
while (condition) { // code }Do-While Loop:
do { // code } while (condition);Single-dimensional Arrays:
int[] array = {1, 2, 3};Two-dimensional Arrays:
int[][] array = new int[rows][columns];+ operator..toUpperCase(), .substring(), .charAt().Integer.parseInt() or Double.parseDouble().