Difference between revisions of "Starts With"

From Progzoo
Jump to navigation Jump to search
(Created page with "{{String Functions}} <question> Use <code>startsWith()</code> to test the start of a string. <shell> public class P{ public static void main(String[] argv) ...")
 
 
Line 7: Line 7:
 
                         throws Exception{
 
                         throws Exception{
 
     System.out.printf("%-20s%-20s\n\n","s","s.toLowerCase()");
 
     System.out.printf("%-20s%-20s\n\n","s","s.toLowerCase()");
     for (String s: "frypan\tfrying\tfriday".split("\t"))
+
     for (String s: "frypan\tfryer\tfriday".split("\t"))
 
       System.out.printf("%-20s%-20s\n",s,QcQ);
 
       System.out.printf("%-20s%-20s\n",s,QcQ);
 
   }
 
   }

Latest revision as of 15:50, 26 September 2014

Use startsWith() to test the start of a string.


[Font] [Default] [Show] [Resize] [History] [Profile]

See Also Ends With