[Java] FizzBuzzCounter

Is this a "one liner" in Java?

FuzzBuzzCounter.java


    public static void main(String[] args) {
        LongStream.rangeClosed(1, Long.parseLong(args[0])).forEach(i -> System.out.println(((i % 3) == 0 ? "Fizz" + ((i % 5) == 0 ? "Buzz" : "") : ((i % 5) == 0 ? "Buzz" : i))));
    }

Recommended Posts

[Java] FizzBuzzCounter
Java
Java
Java learning (0)
Studying Java ―― 3
[Java] array
Java protected
[Java] Annotation
[Java] Module
Java array
Studying Java ―― 9
Java scratch scratch
Java tips, tips
Java methods
Java method
java (constructor)
Java array
java (override)
java (method)
Java Day 2018
Java string
Java static
Java serialization
java beginner 4
JAVA paid
Studying Java ―― 4
Java (set)
[Java] compareTo
Studying Java -5
java reflexes
java (interface)
Java memorandum
☾ Java / Collection
Java array
[Java] Array
Studying Java # 0
Java review
java framework
Java features
[Java] Inheritance
FastScanner Java
Java features
java beginner 3
Java memo
Java inheritance
[Java] Overload
Java basics
[Java] Annotation
java beginner
Java (add2)
JAVA (Map)
Java9 collection
Java basics
Java diary
Java inheritance
[Java] enum
Studying Java ―― 8
Java array
Java (add)
Java method
Java (remove)