I changed String to char[] i want to delete where char[i] = n, i can do it when i print temp[i]. but I need to get print temp[i] to String again. Here my code
public String missingChar(String str, int n){
char[] temp = str.toCharArray();
String hasil = new String(temp);
for (int i= 0; i<temp.length; i++){
if(i!=n){
System.out.print(temp[i]);
}
}
return "I don't know how to get String from System.out.print(temp[i]);";
}
}