File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/com/deepak/data/structures/Strings Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -39,25 +39,25 @@ String s3 = new String("Hello").intern();
39
39
40
40
``` java
41
41
- Below are some basic API ' s. All are not covered here,
42
- - charAt()
42
+ 1. charAt()
43
43
- returns the character located at the specified index.
44
- - equalsIgnoreCase()
44
+ 2. equalsIgnoreCase()
45
45
- determines the equality of two Strings, ignoring their case (upper or lower case doesn' t matters with this function.
46
- - length()
46
+ 3. length()
47
47
- returns the number of characters in a String .
48
- - replace()
48
+ 4. replace()
49
49
- replaces occurrences of character with a specified new character.
50
- - substring()
50
+ 5. substring()
51
51
- returns a part of the string. This method has two forms,
52
52
- public String substring(int begin);
53
53
- public String substring(int begin, int end);
54
- - toLowerCase()
54
+ 6. toLowerCase()
55
55
- returns string with all uppercase characters converted to lowercase
56
- - valueOf()
56
+ 7. valueOf()
57
57
- used to convert primitive data types into Strings .
58
- - toString()
58
+ 8. toString()
59
59
- returns the string representation of the object used to invoke this method.
60
60
- toString() is used to represent any Java Object into a meaningful string representation
61
- - trim()
61
+ 9. trim()
62
62
- returns a string from which any leading and trailing white spaces has been removed
63
63
```
You can’t perform that action at this time.
0 commit comments