• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable To Retrive All The Values From Vector

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic