What’s the best way to queue

Asked

Viewed 750 times

0

Guys, what’s the best way to queue in java. For example I select 3 files, these files stay in a queue until the process of reading and generating the report is finished, as soon as the report is generated the other file runs. NOTE: I am using java desktop. Thank you guys.

  • 1

    You can use the class Queue, or if you give more details of your application we may discover another more appropriate way to solve

  • I have an application that reads several xml files and takes the tag data. With this application I can select the xml and soon after that a report is generated by iReport with all the data that belonged to the xml file. But I would like to run only 1 xml at a time, for example, the application reads the xml generates the report and then goes to the next file and does the same. I’m trying to do just with Arraylist but it’s not working

  • 1

    @sinkz, what’s not working? Give more details of your difficulty.

  • @sinkz a solution would be to use threads, but it was not clear your question, so I recommend that you explain your need better so that we can help you.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.