Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to convert an object into string with different fields in java

String convertedToString = String.valueOf(Object);  //method 1

String convertedToString = "" + Object;   //method 2

String convertedToString = Object.toString();  //method 3
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #object #string #fields #java
ADD COMMENT
Topic
Name
8+1 =