is this it?
for(int i = 0; i < n; i++){
String str = scan.nextLine();
char[] chaAr = str.toCharArray();
for(int j = 0; j < chaAr.length; j++){
if(j%2==0){
System.out.print(chaAr[j]);
}
}
System.out.print(" "); // why are you printLN'ing here?
for(int j = 0; j< chaAr.length;j++){
if(j%2==1){
System.out.print(chaAr[j]);
}
}
Punkte: 30
Damit ich Abstand habe.
─ sayuri 13.12.2020 um 16:10