Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Basics (Retired) Console I/O Say Hello!

Code is not working

class CodeChallenge { static void Main() { System.Console.Write("Hello"); } }

whats wrong?

CodeChallenge.cs
class CodeChallenge
{
    static void Main()
    {
System.Console.Write("Hello");
    }
}
Daniel Tkach
Daniel Tkach
7,608 Points

Just write System.Console.Write("Hello");

No need to make all this a "class", it wouldn't work. After taking some more lessons you'll learn why.

1 Answer

Matthew Musni
Matthew Musni
610 Points

try using System.Console.WriteLine("Hello");

codes are case sensitive