Horje
str.substring(0, 5) returns a substring from 0 to 4 indexes (inclusive) of the string. Code Example
str.substring(0, 5) returns a substring from 0 to 4 indexes (inclusive) of the string.
class scratch{
    public static void main(String[] args) {
        String hey = "Hello World";
        System.out.println( hey.substring(0, 5) );
        // prints Hello;
    }
}




Java

Related
java extract zip Code Example java extract zip Code Example
open website from android activity Code Example open website from android activity Code Example
retrofit android Code Example retrofit android Code Example
jframe border Code Example jframe border Code Example
fragment to fragment Code Example fragment to fragment Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9