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 6152295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:53:46+00:00 2026-05-23T19:53:46+00:00

I am struggling to output this multi-array, I have tried looping through using a

  • 0

I am struggling to output this multi-array, I have tried looping through using a for each loop … This is what I see when I insert a break point, which the array ‘response’ is storing, so how would I go about writing these to the console

response    Count = 6   System.Collections.Generic.List<int[]>
[0] {int[1]}    int[]
     [0]    1577    int
[1] {int[0]}    int[]
[2] {int[0]}    int[]
[3] {int[0]}    int[]
[4] {int[0]}    int[]
[5] {int[6]}    int[]
     [0]    31  int
     [1]    246 int
     [2]    448 int
     [3]    663 int
     [4]    864 int
     [5]    1734    int

Many thanks

  • 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-05-23T19:53:47+00:00Added an answer on May 23, 2026 at 7:53 pm
    foreach (int[] subList in response)
    {
        foreach (int item in subList)
        {
            Console.WriteLine(item);
        }
    }
    

    Using for loop:

    for (int subListIndex = 0; subListIndex < response.Count; subListIndex++)
    {
        for (int itemIndex = 0; itemIndex < response[subListIndex].Length; itemIndex++)
        {
            Console.WriteLine(response[subListIndex][itemIndex]);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this time someone should please relpy i am struggling with running my code using
I'm struggling to open a file, and read each line until EOF. I'm using
I have been struggling with how to make a Pareto Chart in R using
I have been struggling with this for three days, I want to do a
I am struggling to output the following XML using the XmlDocument object in .NET.
I have been struggling through PHP and sqlite for a bit now and I'm
I'm really struggling with this query. I have 4 tables (http://oberto.co.nz/db-sql.png): Invoice_Payement, Invoice, Client
Struggling to parse this JSON response from http://api.twitter.com/1/trends/current.json using foreach ($json_output->trends[0] as $trend )
I am struggling to install mysql2 gem 0.2.7, this is the output I get:
I have tried to work this out myself (even bought a Kindle book!), but

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.