How to Delete folder and subfolders using Java 8

java+8+delete+non+empty+directory

How to delete folder with all files and sub folders in it using java 8. We can use java 8 Stream to delete folder recursively  Files.walk(rootPath, FileVisitOption.FOLLOW_LINKS) .sorted(Comparator.reverseOrder())... read more ?

How to Convert integer set to int array using Java 8

integer+set+to+integer+array+java

How to convert Integer Set to primitive int array. By Using java 8 Streams we can convert Set to array. set.stream().mapToInt(Number::intValue).toArray(); Lets see an example java program on... read more ?

Initializing a boolean array in java with an example program

java+initialize+boolean+array+with+true

Initializing a boolean variable : boolean b=true; In some cases we need to initialize all values of boolean array with true or false. In such cases we can... read more ?

Java 8 initialize set with values with an example program

java+8+initialize+set+with+values+with+an+example+program

We can initialize set while defining by passing values to constructor. For example to initialize HashSet we can use Arrays.asList(value1,value2). Set<Integer> hashset = new HashSet<>(Arrays.asList(12, 13)); #1: Java... read more ?

Top 10 Java array example programs with output

1.Java Example program to find missing numbers in an array. Java Program to find missing numbers in an array 2. Java interview Example program to find second maximum... read more ?

How to run multiple java programs simultaneously in eclipse

open+multiple+consoles+in+eclipse

In some cases we may need to run two java programs simultaneously and need to observe the ouput of two progarsms. In such cases we need to run... read more ?

Log4j example in java using properties file

how+to+create+log4j.properties+file+in+eclipse

Logging is very important part of programming. Logging helps programmer to understand process flow and identify the problems where actually occurred. Log4J will be configured externally using properties... read more ?

Select Menu