GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — StringBuilder length() in Java with Examples - GeeksforGeeks StringBuilder length() in Java with ExamplesLast Updated : 15 Oct, 2018 The length() method of StringBuilder class returns the number of character the StringBuilder object contains. The length of the sequence of characters currently represented by this StringBuilder object is returned by this method.
Syntax:
public int length()Return Value: This method returns length of sequence of characters contained by StringBuilder object. Below programs demonstrate the length() method of StringBuilder Class: Example 1:
Output:
Example 2:
String = WelcomeGeeks length of String = 12
Output:
Reference:
https://docs.oracle.com/javase/10/docs/api/java/lang/StringBuilder.html#length()String = India is Great length of String = 14 Comment Explore |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |