class Fun { void smthComplex() { Object n = new Integer(1); String result = ((n != null) ? n.toString() : ""); } }