Code:
public static void changeArray(char[] array2) {
char[] letterArray = {'a','b','c','d','e','f'};
char currentarray = s.readChar("Current Array: "); //a,b,c,d-->[a.b.c.d]
int indexNummer = s.readInteger("Which index?: ");
if (indexNummer < 4) {
System.out.println("Invalid character (" + indexNummer + "), repeat");
}
char charLetter = s.readChar("Which char?");
if () //ICH WILL HIER IF(LETTER ARRAY =! CHARLETTER) ; SCHREIBEN.
System.out.println("Invalid character (" + charLetter + "), repeat");
Hallo, ich kann mein char Array nicht zur char umwandeln, deshalb kann ich (letterArray =! charLetter) nicht machen. Könnte jemand mir helfen?