Affichage tableau int
This commit is contained in:
parent
2c5ec0e958
commit
dbd88e5af7
@ -18,6 +18,18 @@ public class Utils {
|
||||
}
|
||||
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() {
|
||||
try (Scanner reader = new Scanner(System.in)) {
|
||||
|
Loading…
Reference in New Issue
Block a user