Category: Language
Creating strings: String greeting = “Hello World”; public class StringDemo{ public static void main(String[] args) {…
Some escape sequence here : \t,\b,\n,\r,\f,\’,\”,\\ example: public class Escape { public static void main(String[] args) {…
Normally when we work with numbers, we use primitive data types such as byte,int,long,double, etc e.g: int…
If statement: if(boolean_expression) { //Statement will execute if the boolean expression is true } e.g: public class…
If statement: if(boolean_expression) { //Statement will execute if the boolean expression is true } e.g: public class…
If statement: if(boolean_expression) { //Statement will execute if the boolean expression is true } e.g: public class…
Recent Comments