Search:

Type: Posts; User: Cornix

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    915

    Re: limiting string length

    Then dont use java, because with this attitude you wont get far with it. The java language has a certain philosophy, and what you just said is violating that philosophy quite heavily. Its just not...
  2. Replies
    6
    Views
    915

    Re: limiting string length

    Nope, its not possible. A string is an object, the characters of the string are its private member attribute and you have absolutely no control over it.

    The difference between a string and a char...
  3. Replies
    6
    Views
    915

    Re: limiting string length

    You cant. There is no way for you to actually know how much memory these objects cost. It could be different for every JVM, it could be different every time you run your program.
    You are simply not...
Results 1 to 3 of 3