Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- import java.util.Scanner;
- import com.sun.xml.internal.ws.api.pipe.NextAction;
- import static java.lang.System.*;
- public class NumberAnalyzer
- {
- private ArrayList<Number> list;
- public NumberAnalyzer()
- {
- }
- public NumberAnalyzer(String numbers)
- {
- String nums = numbers;
- Scanner chopper = new Scanner(nums);
- while(chopper.hasNext()){
- int num = chopper.nextInt();
- list.add(new Number(num));
- }
- }
- public void setList(String numbers)
- {
- }
- public int countOdds()
- {
- int oddCount=0;
- return oddCount;
- }
- public int countEvens()
- {
- int evenCount=0;
- return evenCount;
- }
- public int countPerfects()
- {
- int perfectCount=0;
- return perfectCount;
- }
- public String toString( )
- {
- return "";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement