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...
Type: Posts; User: jps
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...
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?