Nashorn executing JavaScript function in Java with map argument

In this example we will see how to execute a JavaScript function in Java using Nashorn. Also we will pass as an argument Java map (LinkedHashMap) which will be considered in the JavaScript as an object. Project structure: For this tutorial we are using Mavan with pom.xml: As you can see we are using nashorn-core … Read more

Java read all files in folder and write only unique rows

This program read all files in a folder then it will filter out all rows smaller then 10 symbols and it will save then in one file Program’s steps: Test files which should be in one folder. This files contains names which can be duplicated: Output file result from this two input files. Contain only … Read more