Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- import java.util.Scanner;
- import static java.lang.System.*;
- public class Lab16b
- {
- public static void main( String args[] )
- {
- NumberAnalyzer test = new NumberAnalyzer("5 12 9 6 1 4 8 6");
- out.println(test);
- out.println("odd count = "+test.countOdds());
- out.println("even count = "+test.countEvens());
- out.println("perfect count = "+test.countPerfects()+"\n\n\n");
- //add more test cases
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement