String class of common operations

Common Functions String class:

String valueOf static (I int) // int Returns a string representation of the form, because this function is a static function, may be used directly "class method" call.

Example:

    System.out.println ( "int conversion value is the result of type String:" + String.valueOf (12));

   operation result:

   

  ~~  usage is as follows: 

  10 I = int; 
  String str = String.valueOf (I); 
  this would be time str "10" 

 

Guess you like

Origin www.cnblogs.com/lily-99-lovelife/p/11720204.html