Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.17 seconds.

  1. Replies
    9
    Views
    1,443

    Re: Little easy to fix problem

    What have you tried? Which part of that are you stuck on? Iterating over names? Using an if statement? Something else? You can't just keep asking general questions, as they're actually much harder to...
  2. Replies
    9
    Views
    1,443

    Re: Little easy to fix problem

    Google is your friend for example regular expressions. But here's one that tests whether the String "cat" can be found in another String:

    Pattern p = Pattern.compile(".*cat.*");
    Matcher m =...
  3. Replies
    9
    Views
    1,443

    Re: Little easy to fix problem

    Yep. So your next step is to throw together a regular expression that matches that pattern.
  4. Replies
    9
    Views
    1,443

    Re: Little easy to fix problem

    That link talks about regular expressions. Basically, regular expressions tell you whether a particular pattern (like a number) can be found inside another String.

    Hint- The pattern you're looking...
  5. Replies
    9
    Views
    1,443

    Re: Little easy to fix problem

    Recommended reading: Pattern (Java Platform SE 6)
Results 1 to 5 of 5