Advertisement
Guest User

Untitled

a guest
Jan 9th, 2013
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. import java.util.ArrayList;
  2. import java.util.Scanner;
  3.  
  4. import com.sun.xml.internal.ws.api.pipe.NextAction;
  5.  
  6. import static java.lang.System.*;
  7.  
  8. public class NumberAnalyzer
  9. {
  10.     private ArrayList<Number> list;
  11.  
  12.     public NumberAnalyzer()
  13.     {
  14.  
  15.     }
  16.  
  17.     public NumberAnalyzer(String numbers)
  18.     {
  19.         String nums = numbers;
  20.         Scanner chopper = new Scanner(nums);
  21.         while(chopper.hasNext()){
  22.             int num = chopper.nextInt();
  23.             list.add(new Number(num));
  24.         }
  25.        
  26.     }
  27.    
  28.     public void setList(String numbers)
  29.     {
  30.        
  31.        
  32.     }
  33.  
  34.     public int countOdds()
  35.     {
  36.       int oddCount=0;
  37.  
  38.  
  39.  
  40.       return oddCount;
  41.     }
  42.  
  43.     public int countEvens()
  44.     {
  45.       int evenCount=0;
  46.  
  47.  
  48.  
  49.       return evenCount;
  50.     }
  51.  
  52.     public int countPerfects()
  53.     {
  54.         int perfectCount=0;
  55.  
  56.  
  57.  
  58.       return perfectCount;
  59.     }
  60.    
  61.     public String toString( )
  62.     {
  63.         return "";
  64.     }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement