Advertisement
Guest User

Untitled

a guest
Jan 9th, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. import java.util.ArrayList;
  2. import java.util.Scanner;
  3. import static java.lang.System.*;
  4.  
  5. public class Lab16b
  6. {
  7.     public static void main( String args[] )
  8.     {
  9.         NumberAnalyzer test = new NumberAnalyzer("5 12 9 6 1 4 8 6");
  10.         out.println(test);
  11.         out.println("odd count = "+test.countOdds());
  12.         out.println("even count = "+test.countEvens());
  13.         out.println("perfect count = "+test.countPerfects()+"\n\n\n");
  14.  
  15.  
  16.         //add more test cases
  17.        
  18.            
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement