private String unicode(char ch){
  return Integer.toString(ch);
}

private String unicode ( char ch ) { return Integer . toString ( ch ) ; }
this is used to convert the the specified character to unicode . this will simply get the decimal representation of the given character as a string so it can be written as an escape .
