Advertisement
RazorBlade57

CoolNums

Nov 22nd, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. //© A+ Computer Science  -  www.apluscompsci.com
  2. //Name -
  3. //Date -
  4. //Class -
  5. //Lab  -
  6.  
  7. import static java.lang.System.*;
  8.  
  9. public class CoolNumbers
  10. {
  11.     private static boolean num;
  12.     public static boolean isCoolNumber(int num){
  13.         if (num % 3-6 == 1){
  14.             return true;
  15.         }else{
  16.             return false;
  17.         }
  18.        
  19.     }
  20.    
  21.         /*
  22.      *method countCoolNumbers will return the count
  23.      *of the coolNumbers between 6 and stop
  24.      */
  25.     public static String countCoolNumbers( int stop )
  26.     {
  27.         if (num == true){
  28.         return 3 + " " + 4 + 5 + 6;
  29.         }else{
  30.             return "";
  31.         }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement