I want to encypt a string by adding +1 (ascii) to every char in the string This my attempt
public static string encrypt(string str){
for(int i = 0; i < str.length(); i++){
int x = str.charAt(i) ;
x = x + 1;
}
// Now how can I complete this loop to produce a new string with encrypting the string by adding 1 to every char?