Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CaffeineBuzz {
- public static String caffeineBuzz(int n){
- String outp="";
- if(n%4!=0)
- {
- if(n%3==0)
- {
- outp = "Java";
- if(n%2==0)
- outp += "Script";
- else
- outp = "Java";
- }
- else
- outp = "mocha_missing!";
- }
- else
- {
- if(n%3==0)
- {
- outp = "Coffee";
- if(n%2==0)
- outp += "Script";
- else
- outp = "Coffee";
- }
- else
- outp = "mocha_missing!";
- }
- return outp;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement