File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable To Retrive All The Values From Vector

 
rajeshyadav mobi
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Vijay Dogra
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic