0

In string.IsNullOrWhiteSpace(parts[1])) why isthe 1 after parts used for? And the 0 and 1 in a sentence above right after parts

This is a college exercise and not a program from solelearn. https://code.sololearn.com/ckLHiOFinTW7/?ref=app

19th Sep 2023, 6:11 PM
Uzma Patel
Uzma Patel - avatar
6 Respuestas
+ 5
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/arrays You can google for more examples and explanations, but I think you should do some basic C# courses first.
19th Sep 2023, 6:20 PM
Lisa
Lisa - avatar
+ 3
parts[1] is the 2nd element in the parts array. parts[0] is the 1st element in the parts array
19th Sep 2023, 6:16 PM
Lisa
Lisa - avatar
0
What is an array?
19th Sep 2023, 6:16 PM
Uzma Patel
Uzma Patel - avatar
0
On it....
19th Sep 2023, 6:21 PM
Uzma Patel
Uzma Patel - avatar
0
We haven't learnt anything about arrays in college yet but still got this assignment :)
19th Sep 2023, 6:22 PM
Uzma Patel
Uzma Patel - avatar
0
How can we declare the number of dimensions in an array as it says in the para that the number of dimensions are already declared?
19th Sep 2023, 6:24 PM
Uzma Patel
Uzma Patel - avatar