String c = b.replace('a','d'); Line 2 creates a new String object with the value "XYZ", but this new object is immediately lost because there is no reference to it.Line 3 creates a new String object referenced by y.If both operands are numeric, the operator adds the operands.The expression on line 6 above can be read as "Add the values i1 and i2 together, then take the sum and convert it to a string and concatenate it with the String from the variable s1".This new String object has the value "xyz" because there was no "Y" in the String object referred to by x.
Either main() must declare that it throws an exception, or the call to out.close() in the finally block must fall inside a (in this case nested) try-catch block.
One disadvantage is that the Usage and Examples sections may come out rather wide: this can be overcome by using or bera installed.) Note that in most La Te X installations this will not actually use the standard fonts for PDF, but rather embed the URW clones Nimbus Rom, Nimbus Sans and (for Courier, if used) Nimbus Mon.
This needs La Te X packages times, helvetic and (if used) courier installed. These are not often installed as part of a Te X distribution, but can obtained from https://org/tex-archive/fonts/ps-type1/lm/ and mirrors.
This has the advantage of always keeping your source tree clean and is particularly recommended when you work with a version of R from Subversion. R-project.org/doc/FAQ/which always has the version for the latest release of R).
Note: if you already have R installed, check that where you installed R replaces or comes earlier in your path than the previous installation.