jam/StringMeAlong

From ggc

Jump to: navigation, search

01 package jam;
02 
03 import wiki.Wiki;
04 /**
05  * All about my application here.
06  @author Jam Jenkins
07  */
08 public class StringMeAlong
09 {
10   public static void main(String[] args)
11   {
12     String name="Jam Jenkins";
13     String removed=name.substring(01)+name.substring(5, name.length());
14     Wiki.out.println(removed);
15 
16     String total="";
17     total+="howdy";
18     total+=" partner,";
19     total+=" how's";
20     total+=" it";
21     total+=" going?";
22     Wiki.out.println(total);
23 
24     String sum="";
25     for(int i=0; i<total.length(); i+=2)
26     {
27       sum+=total.charAt(i);
28     }
29     Wiki.out.println(sum);
30   }
31 }


Download/View jam/StringMeAlong.java





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter