From ba6692d9b508b448eafd7bc71faa4ae3f3ac7199 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 2 Feb 2026 10:35:57 +0100 Subject: Cours du 26 au 30 janvier --- semestre 4/java/tme/tp1/TestLettre.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 semestre 4/java/tme/tp1/TestLettre.java (limited to 'semestre 4/java/tme/tp1/TestLettre.java') diff --git a/semestre 4/java/tme/tp1/TestLettre.java b/semestre 4/java/tme/tp1/TestLettre.java new file mode 100644 index 0000000..78e7191 --- /dev/null +++ b/semestre 4/java/tme/tp1/TestLettre.java @@ -0,0 +1,9 @@ +public class TestLettre { + public static void main(String[] args) { + for (char c = 'a'; c <= 'z'; c++) { + final var l = new Lettre(c); + System.out.print(l.getCarac() + " "); + if ((c - 'a' + 1)%5 == 0) System.out.print("\n"); + } + } +} -- cgit v1.2.3