This system has subsequent variants, which rely on the bypassed parameters. This way returns the string depiction of the last row.
Here is the syntax of this method:
static String valueOf(boolean b) or static String valueOf(char c) or static String valueOf(char[] data) or static String valueOf(char[] data, int offset, int count) or static String valueOf(double d) or static String valueOf(float f) or static String valueOf(int i) or static String valueOf(long l) or static String valueOf(Object obj)
Here is the detail of parameters:
import java.io.*; public class Test { public static void main(String args[]) { String Str = new String(" Welcome to Intellinuts.com "); System.out.print("Return Value :" ); System.out.println(Str.trim() ); } }
This will produce the following result:
Return Value : 1.02939939939E8 Return Value : true Return Value : 1232874 Return Value : abcdefg
Here at Intellinuts, we have created a complete Java tutorial for Beginners to get started in Java.