J
Joona I Palaste
Would there be any existing way in Java 1.4.2 to do this kind of
conversion?
Input: A reference to a java.lang.Object (or to any subclass of it)
Output: If the reference is not null, a concatenated String of the
following:
" (i.e. a double quote)
the result of the object's toString() method
" (i.e. another double quote)
If the reference is null, the String null (i.e. a String consisting of
four characters n, u, l, l, no double quotes).
--
/-- Joona Palaste ([email protected]) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"And according to Occam's Toothbrush, we only need to optimise the most frequent
instructions."
- Teemu Kerola
conversion?
Input: A reference to a java.lang.Object (or to any subclass of it)
Output: If the reference is not null, a concatenated String of the
following:
" (i.e. a double quote)
the result of the object's toString() method
" (i.e. another double quote)
If the reference is null, the String null (i.e. a String consisting of
four characters n, u, l, l, no double quotes).
--
/-- Joona Palaste ([email protected]) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"And according to Occam's Toothbrush, we only need to optimise the most frequent
instructions."
- Teemu Kerola