Re: split() and String []

From: Yoyoma_2 (Yoyoma_2_at_[at-)
Date: 04/02/04

  • Next message: Yoyoma_2: "Re: Evaluate basic arithmatic in a string"
    Date: Fri, 02 Apr 2004 16:35:32 GMT
    
    

    Mike Frayn wrote:
    >>Okay, that's embarrassing. I remember looking for that
    >
    > and
    >
    >>not finding it... must've been looking at a regular
    >
    > string.
    >
    >>Ouch.
    >
    >
    > Uhhhh, nope that's not a valid excuse as a String has that
    > too. Right, so I have no idea why I missed that!!! Double
    > ouch.
    >
    > Mike

    In your original code you had a variable name like "String MyString[]=".
    Java standard requires that variable and function names start with lower
    case. Its a good habit to pick up. An external programmer can drop
    into your code and know that MyString isn't a class that you are making
    static calls to. Also it makes the code a lot prettyer.

    Just a suggestion.


  • Next message: Yoyoma_2: "Re: Evaluate basic arithmatic in a string"

    Relevant Pages

    • Re: split() and String []
      ... must've been looking at a regular ... > Ouch. ... Uhhhh, nope that's not a valid excuse as a String has that ...
      (comp.lang.java)
    • Re: pumping lemma (third try)
      ... >> you a string not in L. ... >> contradiction and the proof that L isn't regular breaks down. ... > and answering my wannabe trials and questions. ... > there are no adjacent equal substrings. ...
      (comp.theory)
    • Re: pumping lemma (third try)
      ... some string x followed by its reverse.} ... > I will assume that L is regular and therefore the pumping lemma ... > Now I will divide the PL string w into the PL substrings x, ...
      (comp.theory)
    • Re: pumping lemma (third try)
      ... >> Duncan's comments and put my hands on a new wannabe trial using the ... >> pumping lemma on the problem below. ... I can decompose a string w belonging to L into x, ... >> being regular without that PL applies, ...
      (comp.theory)
    • Re: regex help
      ... On Sep 17, 8:58 am, Jesse Houwing ... i'm trying to see if a string ends with teh below ... Your regular expression is correct. ...
      (microsoft.public.dotnet.framework.compactframework)