Affichage tableau int

This commit is contained in:
Meutel 2019-05-30 21:38:03 +02:00
parent 2c5ec0e958
commit dbd88e5af7

View File

@ -18,6 +18,18 @@ public class Utils {
} }
System.out.println(); System.out.println();
} }
public static final void afficherTabInt(int... args) {
if (args == null) {
System.out.println("null");
} else {
String str = Arrays.stream(args)
.boxed()
.map(i -> i+"")
.collect(Collectors.joining(" "));
System.out.println(str);
}
System.out.println();
}
public static int lireEntier() { public static int lireEntier() {
try (Scanner reader = new Scanner(System.in)) { try (Scanner reader = new Scanner(System.in)) {