• Sign Up
  • Kata
  • Kumite
  • Forum
  • Wiki
  • Leaders
  • Log In
  • Sign Up
Name:Unknown
Clan:ALE
Member Since:Mar 2015
Last Seen:Jan 2019
Profiles:
Following:0
Followers:4
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (32)
  • Replies
  • Authored
  • Needs Resolution
    • Sloubi
    • commented on "Catching Car Mileage Numbers" java solution

    Nice one :)
    As a little improvements :

    • The "number > 99" test is done up to 5 times (one time for each predicate), it can be done outside the stream.
    • I'm not of fan of Integer.paseInt(Integer.toString(number)), but I guess it's a compromise for readability to have all the predicates on strings.
    • boringMax
    • commented on "Catching Car Mileage Numbers" java solution

    Like this one so much!

    • TusharM1
    • commented on "Catching Car Mileage Numbers" java solution

    How does Stream.<Predicate>of() work? Is it casting the output of the method?

    • Bruel
    • commented on "Catching Car Mileage Numbers" java solution

    As always, now i feel terrible for my 100 lines solution. Not that I was going for simple, but I do wish I knew more about this functional programming thingy. it's so more concise and easy to read.

    • MMMAAANNN
    • commented on "Whitespace Interpreter" kata

    Hi Klesmus,
    Can you please look at some comments above regarding the Java version?

    • JustDuck
    • commented on "Java Test Reference" doc

    You can install TestNG in Eclipse but I would be mindful of the fact, that its a pain to keep separate from Junit.

    • Klemsus
    • commented on "Catching Car Mileage Numbers" java solution

    It's run a predicate against number that first converted to string. Predicate is an interface with single method boolean test(T object) (T is a String in this case).
    With Stream.of(...) we creates a stream of predicates. And with anyMatch(...) we test each predicate if it's returns true for incoming number.

    • kwiniarski97
    • commented on "Catching Car Mileage Numbers" java solution

    can somone explain me what does p.test(Integer.toString(number)) ?

    • saezf
    • commented on "Catching Car Mileage Numbers" java solution

    So beautiful, I love it!

    • renter
    • commented on "Catching Car Mileage Numbers" java solution

    I am in awe.

    • wb4
    • commented on "Catching Car Mileage Numbers" java solution

    This is beautiful! It's the same approach I was going for, but it's 1/4 the size!

    • Javatlacati
    • commented on "Java Test Reference" doc

    Raised https://github.com/Codewars/codewars-runner-cli/issues/182

    • Viktor Taranenko
    • commented on "Catching Car Mileage Numbers" java solution

    Godlike!

    • jacobb
    • resolved a suggestion on "Whitespace Interpreter" kata

    Marking suggestion as resolved.

    • jacobb
    • commented on "Whitespace Interpreter" kata

    Java translation has been approved.

  • Loading more items...
  • © 2021 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Contact
  • powered by

Confirm

  • Cancel
  • Confirm