Studyon Minte9.com
Java SE




Prefix




package testexample; public class Testexample { public static void main(String[] args) { String filename = "My_file1"; if (filename.startsWith("My")) System.out.println(filename + " starts with My"); // My_file1 starts with My } }
 


http://www.tutorialspoint.com/java/java_string_startswith.htm