First commit of partial RosettaCode contents.
Pushing this for testing purposes. Lots of work still needed.
This commit is contained in:
commit
1e05ecd7ee
781 changed files with 9080 additions and 0 deletions
5
Task/FizzBuzz/Java/fizzbuzz-5.java
Normal file
5
Task/FizzBuzz/Java/fizzbuzz-5.java
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
public String fizzBuzz(int n){
|
||||
return (n>0) ? fizzBuzz(n-1) +
|
||||
(n % 15 != 0? n % 5 != 0? n % 3 != 0? (n+"") :"Fizz" : "Buzz" : "FizzBuzz")
|
||||
: "";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue