jam/TMNT

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 TMNT
09 {
10   public static void main(String[] args)
11   {
12     String hello="Teenage";
13     String other=hello;
14     hello+=" Mutant";
15     Wiki.out.println("hello is "+hello);//Teenage
16     Wiki.out.println("other is "+other);//Teenage
17 
18     StringBuffer helloBuffer=new StringBuffer("Teenage");
19     StringBuffer otherBuffer=helloBuffer;
20     helloBuffer.append(" Mutant");
21     Wiki.out.println("helloBuffer is "+helloBuffer);//Teenage Mutant
22     Wiki.out.println("otherBuffer is "+otherBuffer);//Teenage Mutant
23   }
24 }


Download/View jam/TMNT.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