Search:

Type: Posts; User: jps

Search: Search took 0.10 seconds.

  1. Replies
    12
    Views
    1,266

    Re: Variable Loosing Data?

    Follow the flow of the code. The value of the variable never changes from "" when addComponents is called
    As suggested, initialize the variable to something besides "", like "initial value" and see...
  2. Replies
    12
    Views
    1,266

    Re: Variable Loosing Data?

    The String variable line is initialized to "" (the empty string) and never given another value.
    What did you expect it to print?
    Maybe uncomment the line that assigns a value to the variable?
Results 1 to 2 of 2