Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

string startswith java

public class StringExample 
{
    public static void main(String[] args) 
    {
        String blogName = "howtodoinjava.com";
         
        System.out.println( blogName.startsWith("how") );               //true
         
        System.out.println( "howtodoinjava.com".startsWith("howto") );  //true
         
        System.out.println( "howtodoinjava.com".startsWith("hello") );  //false
    }
}
Source by howtodoinjava.com #
 
PREVIOUS NEXT
Tagged: #string #startswith #java
ADD COMMENT
Topic
Name
6+1 =