Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //© A+ Computer Science - www.apluscompsci.com
- //Name -
- //Date -
- //Class -
- //Lab -
- import static java.lang.System.*;
- public class CoolNumbers
- {
- private static boolean num;
- public static boolean isCoolNumber(int num){
- if (num % 3-6 == 1){
- return true;
- }else{
- return false;
- }
- }
- /*
- *method countCoolNumbers will return the count
- *of the coolNumbers between 6 and stop
- */
- public static String countCoolNumbers( int stop )
- {
- if (num == true){
- return 3 + " " + 4 + 5 + 6;
- }else{
- return "";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement