Wenn du statische strings vermeiden willst, kannst du das array auch direkt initialisieren:
char[] hello = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};
Wenn du statische strings vermeiden willst, kannst du das array auch direkt initialisieren:
char[] hello = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};
Starflow (27.02.2016)