Search:

Type: Posts; User: Kerr

Search: Search took 0.09 seconds.

  1. Thread: If? Or ELSE!

    by Kerr
    Replies
    3
    Views
    1,349

    Re: If? Or ELSE!

    It is easy. To convert the string to lower case:
    str = str.toLowerCase();
    To remove whitespaces at the beginning and the end.
    str = str.trim();
    Check if a string starts with something:
    if...
  2. Thread: If? Or ELSE!

    by Kerr
    Replies
    3
    Views
    1,349

    Re: If? Or ELSE!

    If-else would be easiest :). A regex could maybe work very well.
    Lesson: Regular Expressions (The Java™ Tutorials > Essential Classes)
    Even though there may be a better and simpler way (not that...
Results 1 to 2 of 2