n

n

  • NA
  • 3
  • 0

Basic C# question regarding strings and if statements

Nov 3 2008 3:08 AM
Hello everyone. I'm trying to make a console application in C#. It's just a very basic program. It asks the user to input some text, and it will give a response based on this. The program also has to make sure that Java, java, JAVA, jaVA, etc. are all the same. This is my code so far: http://pastebin.me/490eb15ca27f1 I am not sure whether answer.Equals works for this case. The compiler is giving errors. It says it expects a ( and a ) somewhere around every 'answer' word. Any help will be greatly appreciated!

Answers (2)