C
C#2y ago
StrixyBixy

how do i display this array

Hi. Im having an issue with displaying an string array. the way it comes out is like this. you can see it the screenshot before the debug statement
No description
11 Replies
StrixyBixy
StrixyBixyOP2y ago
No description
StrixyBixy
StrixyBixyOP2y ago
on the bottom is my write out
Angius
Angius2y ago
Uh Write the joined string to the console Not the source array See how student_names_string is darker and has the first letter underlined? That means you're not using this variable
StrixyBixy
StrixyBixyOP2y ago
okay i got it now but the problem is that it lists the ones under average but there is a bunch of commas
StrixyBixy
StrixyBixyOP2y ago
No description
StrixyBixy
StrixyBixyOP2y ago
nvm i think i can solve this
Angius
Angius2y ago
Those are the empty elements, I'd assume
StrixyBixy
StrixyBixyOP2y ago
yeah how would i remove those
Angius
Angius2y ago
Could filter the array before joining LINQ .Where() would be useful here
StrixyBixy
StrixyBixyOP2y ago
sweet man thank you
StrixyBixy
StrixyBixyOP2y ago
No description

Did you find this page helpful?