Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
❔ error CS1525: Unexpected symbol `String' - C#
C
C#
•
3y ago
•
20 replies
supriseX
❔ error CS1525: Unexpected symbol `String'
using System
;
public String DuplicateCount
(string input
)
{
foreach
(char a in input
)
{
int i
= a
.Count
;
if
(i
> 1
)
{
Console
.WriteLine
(
$
"
{a
}
:
{i
}
"
)
;
}
}
}
DuplicateCount
(
"indivisibilities
"
)
;
why doesn
't this work
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
✅ `unexpected symbol switch` error
C
C# / help
3y ago