Compile errors - missing semicolon in main, passing a string to a method that expects a string array, calling a method replace on a string array when this method is defined in string, passing strings to this method when char expected.
If u fix these and pass a string to the replaceJ method and instead of ""'s in call to replace(char, char) use ''s then the output is
java as you havent assigned the string returned from replace method to anything so its instantly lost
//Tom