Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9226557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:51:38+00:00 2026-06-18T04:51:38+00:00

This is the code: _fts = new List<int>(); for (int i = 0; i

  • 0

This is the code:

_fts = new List<int>();
                    for (int i = 0; i < LR.Count; i++)
                    {
                        _fts.Add(LR[i].start);
                        _fts.Add(LR[i].end);
                    }

In the end _fts have for example 15 numbers for example the first 4 indexs:

[0] 88
[1] 96
[2] 93
[3] 100

I need before im doing the adding: _fts.Add
I need to calculate somehow each two couple start and end and get the numbers between and add all this numbers to the _fts.

For example end is 96 and start 88 so I need to add to the _fts the numbers:

88 89 90 91 92 93 94 95 96

Then end is 100 and start is 93 so again add to _fts the numbers:

93 94 95 96 97 98 99 100

So now _fts will looks like:

88 89 90 91 92 93 94 95 96 93 94 95 96 97 98 99 100

If the number for example 93 and 94 appears twice it’s ok I need it this way since after it I parse the List and put it in directories …Never mind this part with the directories.

What I need to add the numbers in between each couple. And not only to add 88 and 96 or 93 and 100.

How can I do it ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:51:39+00:00Added an answer on June 18, 2026 at 4:51 am

    Like this?

    for (int j = LR[i].start; j <= LR[i].end; j++)
    {
        _fts.Add(j);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code: if (LR.Count > 0) { for (int i = 0;
This code ran for 0.012 seconds: std::list<int> list; list.resize(100); int size; for(int i =
This code seems to work as expected, populates an array of numbers using a
This code; GeoCoordinateWatcher watcher = new GeoCoordinateWatcher(); watcher.DesiredAccuracy = GeoPositionAccuracy.High; ...fails with: Property or
This code just keeps giving me errors. I have a field (datetime) in my
This code: public void foo() { new Thread() { @Override public void run() {
This code works fine in Java 1.6: public static String padLeft(String s, int n)
This code create db backup file, but the file name have always the same
This code URL listofFiles = this.getClass().getResource(someDir); File f = new File(listofFiles.toString()); File[] files =
This code sometime throwing an Exception even i have used synchronized Method removeFirst within

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.