Some error in Code

https://ide.codingblocks.com/s/341787.

This is the link to my code. There is some problem as i am getting empty string ArrayList as output.
The recursive call to the function is stored in variable restResult which is null after running.
Please help in finding my error

change you myResult loop to

for( int i = 0 ; i < restResult.size(); i++ ) {
String res= restResult.get(i);
for ( int j = 0 ; j < res.length() ; j++ ) {
String val = res.substring(0,j)+c+res.substring(j);
myResult.add(val);
}
}