Jul 16, 2024
class
keyword followed by class name and curly bracespublic
javac
, run with java
int
, String
, boolean
, etc.int age = 30;
)final float PI = 3.14;
)Date
class)double x = 1.1; int y = (int)x;
)Integer.parseInt()
)substring
, trim
, replace
, indexOf
, length, etc.\n
), tab (\t
), backslash (\\
), double quote (\"
)int[] numbers = new int[5];
==
, !=
, >
, <
, >=
, <=
&&
, ||
, !
if
, else if
, else
, switch
condition ? value1 : value2;
for
, while
, do-while
, for-each