• 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
  • Replies (25)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • dfhwze
    • commented on "Bitcoin statistics" kata
    • 8 months ago

    to get rid of it

  • 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
    • Purple14
    • commented on "Complementary DNA" java solution
    • 4 years ago

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

  • Custom User Avatar
    • GinOwO
    • commented on "Infinitely Nested Radicals" java solution
    • 4 years ago

    This comment is hidden because it contains spoiler information about the 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
    • Blind4Basics
    • resolved an issue on "80's Kids #3: Punky Brewster's Socks" kata
    • 7 years ago

    actually, it's even said in the description... x)

  • Custom User Avatar
    • Blind4Basics
    • commented on "80's Kids #3: Punky Brewster's Socks" kata
    • 7 years ago

    the expected ouput is an empty array. The real issue here is that the behavior isn't documented in the description.

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

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

  • Custom User Avatar
    • g964
    • resolved an issue on "Maximum Length Difference" kata
    • 7 years ago

    1- It is a question not an issue.
    2- 1165 guys passed the Java kata (see at the top of the page), if there were errors somebody would have seen them.
    3- There are more fixed tests when you "SUBMIT" than in sample tests.
    4- I tried a few solutions and all was fine.
    5- You code could be wrong:-(

  • Custom User Avatar
    • titoelfoly
    • commented on "Remove First and Last Character" java solution
    • 7 years ago

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

  • Custom User Avatar
    • Chrono79
    • commented on "Next bigger number with the same digits" kata
    • 7 years ago

    You didn't understand what to do, it's not the biggest number you can make with those digits, it's the next bigger number.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...