String.valueOf


String.valueOf

valueOf public static String valueOf(int i) Returns the string representation of the int argument. The representation is exactly the one returned by the Integer.toString method of one argument. Parameters: i - an int. Returns: a string representation of the int argument. See Also: Integer.toString(int, int) 파라미터 - int 리턴값 - String public static String valueOf(int i) { return Integer.toString(i); } 예시) String makeModel() { // this.nation = "USA"; String strSeries = String.valueOf(Series.getSeries...



원문링크 : String.valueOf