jam/SortedCats

From ggc

Jump to: navigation, search

01 package jam;
02 
03 import wiki.Wiki;
04 import java.util.*;
05 /**
06  * All about my application here.
07  @author Jam Jenkins
08  */
09 public class SortedCats
10 {
11    public static void main(String[] args)
12    {
13       FatCat[] herd=new FatCat[4];
14       herd[0]=new FatCat("Tilly"8);
15       herd[1]=new FatCat("Angel"50);
16       herd[2]=new FatCat("Cinnamon"13);
17       herd[3]=new FatCat("Juniper"11);
18       Wiki.out.println("Unsorted is");
19       for(FatCat cat: herd)
20          Wiki.out.println("Cat is "+cat);
21       Arrays.sort(herd);
22       Wiki.out.println("Sorted is");
23       for(FatCat cat: herd)
24          Wiki.out.println("Cat is "+cat);
25 
26       Wiki.out.println("Add your code here.");
27    }
28 }


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