Here you can find the source of valueOf(String str)
Parameter | Description |
---|---|
str | a parameter |
public static String valueOf(String str)
//package com.java2s; //License from project: LGPL public class Main { /**//from w ww . j av a2s. co m * return "" if value is null otherwise return same string * @param str * @return string (not null) */ public static String valueOf(String str) { if (str == null) return ""; return str; } }