• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
hjacobs3 Avatar
Name:Unknown
Clan:Unknown
Member Since:Jul 2018
Last Seen:Aug 2024
Profiles:
Following:9
Followers:5
Allies:2
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (55)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • dfhwze
    • commented on "Bitcoin statistics" kata
    • 8 months ago

    to get rid of it

  • Custom User Avatar
    • rowcased
    • commented on "Simple multiplication" java solution
    • 2 years ago

    AFAIK : only if there is ONE expression expected to follow, any others beyond that will be considered not part of that statement

  • Custom User Avatar
    • LopsidedChez
    • commented on "Simple multiplication" java solution
    • 2 years ago

    I didn't know you could exclude curly brackets on an if statement

  • Custom User Avatar
    • dayZero007
    • commented on "Opposites Attract" java solution
    • 2 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • Skitseez
    • commented on "Fruit Machine" java solution
    • 2 years ago

    Everything can be solved with if.

  • Custom User Avatar
    • Zaximus1212
    • commented on "Opposites Attract" java solution
    • 3 years ago

    Could've also used 1 in the place of 0 if im not mistaken...

  • Custom User Avatar
    • Usova-Anna
    • commented on "Remove First and Last Character" java solution
    • 4 years ago

    Thank you.
    Such a graceful solution!

  • Custom User Avatar
    • vincent-blyat
    • commented on "Complementary DNA" java solution
    • 6 years ago

    I we know the library methods, then why not?

  • Custom User Avatar
    • tomwilliamfranklin
    • commented on "Mexican Wave" kata
    • 6 years ago

    I would rather place an if statement in your for loop to only edit the characters which are alphabetical. do something like if(Character.isAlphabetical(string.getChar(i))) { }. This means the for loop will not do anything with the blank spaces so long as you're adding to the array in the if statement.

  • Custom User Avatar
    • krishp
    • commented on "Easy wallpaper" kata
    • 6 years ago

    Should it have been though?

  • Custom User Avatar
    • jmerkel
    • commented on "Mexican Wave" kata
    • 6 years ago

    Java has dynamic arrays called ArrayList.
    But your solution doesn't need them, just think about what Chrono79 said.
    It is possible to know its size beforehand.

  • Custom User Avatar
    • jmerkel
    • commented on "Mexican Wave" kata
    • 6 years ago

    Strings in Java are immutable, but if you reassign them, your command should do what you want.
    str = str.replaceAll(" ","");
    If you want to remove all non-visible characters (e.g. tab, \n), go with:
    str = str.replaceAll("\s+","")

  • Custom User Avatar
    • Milis
    • commented on "Exclamation marks series #11: Replace all vowel to exclamation mark in the sentence" java solution
    • 7 years ago

    not case sensitive

  • Custom User Avatar
    • ywsmart
    • commented on "Parse nice int from char problem" java solution
    • 7 years ago

    若测试用例有2位数字的话,这个答案就不适用了

  • Custom User Avatar
    • hjacobs3
    • commented on "Maximum Length Difference" kata
    • 7 years ago

    Thank you!
    I am sorry, want just know why I am able to pass all your tests besides your sample.

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...