| Author |
Unable To Retrive All The Values From Vector
|
rajeshyadav mobi
Greenhorn
Joined: Apr 18, 2011
Posts: 25
|
|
Hi,
This Is Rajesh
I am using a Ticker , for which the values has to come from Vector obj and add to Ticker for scrolling
i am able to retrive all The values from Vector obj , but only last value is displaying on Ticker
Here is the code
Vector RssFeeds;
for(int j=0; j < RssFeeds.size(); j++ )
{
String scrollFeeds=RssFeeds.elementAt(j).toString();
System.out.println("The Scrolling Feeds On Ticker............"+j+"..... " +RssFeeds.elementAt(j).toString());
ticker.setString(scrollFeeds);
setTicker(ticker);
}
Please Help Me whiere i am making the Mistake.
|
 |
Vijay Dogra
Greenhorn
Joined: Sep 16, 2004
Posts: 22
|
|
|
Use StringBuffer or StringBuilder and append all the string from your vector, and then outside loop set this as text to the ticker..
|
 |
rajeshyadav mobi
Greenhorn
Joined: Apr 18, 2011
Posts: 25
|
|
Hi Vijay,
When I am Using StringBuffer I am getting error that String Cannot Converted in to StringBuffer.
Is Their any Other alternative For This.
Waiting For Reply
|
 |
Vijay Dogra
Greenhorn
Joined: Sep 16, 2004
Posts: 22
|
|
|
I suggest you to have a look at documentation of Java. I can tell you whats wrong and whats not, however, if I do so, you would never dare to open those documentation API
|
 |
 |
|
|
subject: Unable To Retrive All The Values From Vector
|
|
|