-
JavaScript Check if String contains a substring
In JavaScript, we can use the classic indexOf() or the new ES6 includes to check if a String contains a substring.
Date: 2019-08-11 View: 1520
-
JavaScript How to redirect a page
In JavaScript, we can use either location.replace() or location.href to redirect a page. Normally, we use location.replace() to simulate an HTTP redirect.
Date: 2019-08-11 View: 1520
-
JavaScript How to remove certain element from Array
In JavaScript, we can combine indexOf() and splice() to remove a certain element from an Array.
Date: 2019-08-11 View: 1520
-
JavaScript Array forEach examples
In JavaScript, we can use forEach(function) to loop an Array. The provided function in forEach() will run once for each array element.
Date: 2019-08-11 View: 1520
-
JavaScript How to loop an Array
In JavaScript, we can use for, forEach or for..of to loop an Array.
Date: 2019-08-11 View: 1520
-
JavaScript Get selected value from dropdown list
A JavaScript example to show you how to get the selected value or text from a dropdown list.
Date: 2019-08-11 View: 1520
-
Java How to Iterate a HashMap
In Java, there are 3 ways to loop or iterate a HashMap
Date: 2019-08-11 View: 1520
-
Java Files.readAllBytes example
In Java, we can use Files.readAllBytes to read a file.
Date: 2019-08-11 View: 1520
-
Java How to append text to a file
In Java, we can use Files.write and StandardOpenOption.APPEND to append text to a file.
Date: 2019-08-11 View: 1520
-
Java How to create and write to a file
In Java, we can use Files.write (Since JDK 7) to create and write to a file, one line, simple and nice. See the following examples :
Date: 2019-08-11 View: 1520
-
Java How to read a file
In Java, there are few ways to read a file.
Date: 2019-08-11 View: 1520
-
Java How to send Email
To send email in Java, we need JavaMail
Date: 2019-08-11 View: 1520
-
Spring Boot How to send email via SMTP
In this tutorial, we will show you how to send email via SMTP in Spring Boot.
Date: 2019-08-11 View: 1520
-
Java Could not find or load main class
A popular error message for new Java users.
Date: 2019-08-11 View: 1520
-
javac is not recognized as an internal or external command, operable program or batch file
A popular common error for new Java users.
Date: 2019-08-11 View: 1520