Regarding your comment after Ian Henryβs reply, Iβm not quite sure that I understand what you are asking.
If it comes to adding double quotes to a string, you can combine double quotes into your string, for example:
String theFirst = "Java Programming"; String ROM = "\"" + theFirst + "\"";
Or, if you want to do this with a single String variable, this will be:
String ROM = "Java Programming"; ROM = "\"" + ROM + "\"";
Of course, this actually replaces the original ROM, since Java strings are immutable.
If you want to do something like turning a variable name into a String, you cannot do it in Java, AFAIK.
GreenMatt Aug 24 '10 at 17:33 2010-08-24 17:33
source share