Ich habe eine Liste. Z.B.
Nun möchte ich die Anzeige etwas aufwerten:
A
B
C
Ich glaube das Anliegen ist klar. Ich weiß, dass man mit XML den ersten Buchstaben des aktuellen Namens ermitteln könnte. Aber wie kann man eine Ausgabe innerhalb eines for-each immer dann machen, wenn der erste Buchstabe sich ändert?
- Ameli
- Berta
- Bingo
- Bolze
- Constanze
- ...
Nun möchte ich die Anzeige etwas aufwerten:
A
- Ameli
B
- Berta
- Bingo
- Bolze
C
- Constanze
Ich glaube das Anliegen ist klar. Ich weiß, dass man mit XML den ersten Buchstaben des aktuellen Namens ermitteln könnte. Aber wie kann man eine Ausgabe innerhalb eines for-each immer dann machen, wenn der erste Buchstabe sich ändert?
Comment