Skip to content
Loading
  • 0
    Remember List behaved as a Single-Dimensional Array
     
    https://msdn.microsoft.com/en-us/library/6sh2ey19(v=vs.110).aspx 
    0
  • 0
    As you are printing the whole list in 1 go, it will list them in a row. To seperate the list how you want it, you need to understand arrays.
     
    You need to change this line
    • Console.WriteLine(listDetails);
    into 2 lines
     
       Console.WriteLine(listFirstDetails);  //change it to the first 3 fields of your list
       Console.WriteLine(listLastDetails); //change it to the last 3 fields of your list 
     
     That would be a quick fix, but you need to invest some time in how to print individual items in a list array. Using Classes and breaking your code down into chunks (sub routoines, functions) will make your coding faster and easier to debug.
    0