This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//DEPS net.datafaker:datafaker:1.9.0 | |
/** | |
* Pour executer avec JBang : jbang SeveralSuppliersStreamExample.jsh | |
* <p> | |
* Pour exécuter sous JShell : | |
* jshell --class-path .;.\lib\datafaker-1.9.0.jar | |
* /open SeveralSuppliersStreamExample.jsh | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//DEPS net.datafaker:datafaker:1.9.0 | |
/** | |
* Pour executer avec JBang : jbang SeveralSuppliersCollectionExample.jsh | |
* <p> | |
* Pour exécuter sous JShell : | |
* jshell --class-path .;.\lib\datafaker-1.9.0.jar | |
* /open SeveralSuppliersCollectionExample.jsh | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//DEPS net.datafaker:datafaker:1.9.0 | |
/** | |
* Pour executer avec JBang : jbang SimpleStreamUsage.jsh | |
* <p> | |
* Pour exécuter sous JShell : | |
* jshell --class-path .;.\lib\datafaker-1.9.0.jar | |
* /open SimpleStreamUsage.jsh | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//DEPS net.datafaker:datafaker:1.9.0 | |
/** | |
* Pour executer avec JBang : jbang SimpleCollectionUsage.jsh | |
* <p> | |
* Pour exécuter sous JShell : | |
* jshell --class-path .;.\lib\datafaker-1.9.0.jar | |
* /open SimpleCollectionUsage.jsh | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS org.assertj:assertj-core:3.24.2 | |
// A exécuter avec JBang : jbang FrequenciesMap.java | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
import static java.lang.System.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A exécuter avec JBang : jbang frequencies-map-with-groupingby-and-summingint.jsh | |
* <p> | |
* Ou ouvrir dans JShell : /open frequencies-map-with-groupingby-and-summingint.jsh | |
*/ | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A exécuter avec JBang : jbang frequencies-map-with-groupingby-and-counting.jsh | |
* <p> | |
* Ou ouvrir dans JShell : /open frequencies-map-with-groupingby-and-counting.jsh | |
*/ | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A exécuter avec JBang : jbang frequencies-map-with-for.jsh | |
* <p> | |
* Ou ouvrir dans JShell : /open frequencies-map-with-for.jsh | |
*/ | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//DEPS net.datafaker:datafaker:1.9.0 | |
/** | |
* Pour exécuter avec JBang : jbang DataFakerOptionsProvider.jsh | |
* Pour exécuter sous JShell : | |
* jshell --class-path .;.\lib\datafaker-1.9.0.jar | |
* /open DataFakerOptionsProvider.jsh | |
*/ | |
import net.datafaker.Faker; | |
import net.datafaker.providers.base.Options; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//DEPS net.datafaker:datafaker:1.9.0 | |
/** | |
* Pour exécuter avec JBang : jbang DataFakerOptionsProviderSubset.jsh | |
* Pour exécuter sous JShell : | |
* jshell --class-path .;.\lib\datafaker-1.9.0.jar | |
* /open DataFakerOptionsProviderSubset.jsh | |
*/ | |
import net.datafaker.Faker; | |
import net.datafaker.providers.base.Options; |