-
Java How to Iterate a HashMap
In Java, there are 3 ways to loop or iterate a HashMap
Date: 2019-08-11 View: 1234
-
Maven source value 1.5 is obsolete and will be removed in a future release
In IntelliJ IDEA, Maven builds a project, and hits the following warning message?
Date: 2019-08-11 View: 1737
-
Java Files.readAllBytes example
In Java, we can use Files.readAllBytes to read a file.
Date: 2019-08-11 View: 1393
-
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: 1366
-
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: 1283
-
Java How to read a file
In Java, there are few ways to read a file.
Date: 2019-08-11 View: 1225
-
Java How to send Email
To send email in Java, we need JavaMail
Date: 2019-08-11 View: 1320
-
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: 1215
-
Spring Read file from resources folder
In Spring, we can use ClassPathResource or ResourceLoader to get files from classpath easily.
Date: 2019-08-11 View: 1302
-
Java Could not find or load main class
A popular error message for new Java users.
Date: 2019-08-11 View: 1360
-
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: 1407
-
Is Java pass-by-value or pass-by-reference?
In Java, for primitive types, parameters are pass-by-value; For object types, object reference is pass-by-value, however, Java is allowed to modify object’s fields via object reference.
Date: 2019-08-11 View: 1220
-
Java List java.lang.UnsupportedOperationException
A simple List.add() and hits the following java.lang.UnsupportedOperationException
Date: 2019-08-11 View: 1190
-
Java two-dimensional array example
A Java 2d array example.
Date: 2019-08-11 View: 1294
-
How to get user input in Java
In Java, we can use java.util.Scanner to get user input from console.
Date: 2019-08-11 View: 1426