Skip to content

Commit 6720197

Browse files
authored
Update Strings_Introduction.md
1 parent 106aa94 commit 6720197

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/com/deepak/data/structures/Strings/Strings_Introduction.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,25 @@ String s3 = new String("Hello").intern();
3939

4040
```java
4141
- Below are some basic API's. All are not covered here,
42-
- charAt()
42+
1. charAt()
4343
- returns the character located at the specified index.
44-
- equalsIgnoreCase()
44+
2. equalsIgnoreCase()
4545
- determines the equality of two Strings, ignoring their case (upper or lower case doesn't matters with this function.
46-
- length()
46+
3. length()
4747
- returns the number of characters in a String.
48-
- replace()
48+
4. replace()
4949
- replaces occurrences of character with a specified new character.
50-
- substring()
50+
5. substring()
5151
- returns a part of the string. This method has two forms,
5252
- public String substring(int begin);
5353
- public String substring(int begin, int end);
54-
- toLowerCase()
54+
6. toLowerCase()
5555
- returns string with all uppercase characters converted to lowercase
56-
- valueOf()
56+
7. valueOf()
5757
- used to convert primitive data types into Strings.
58-
- toString()
58+
8. toString()
5959
- returns the string representation of the object used to invoke this method.
6060
- toString() is used to represent any Java Object into a meaningful string representation
61-
- trim()
61+
9. trim()
6262
- returns a string from which any leading and trailing white spaces has been removed
6363
```

0 commit comments

Comments
 (0)