您的位置:首页 > 编程语言 > C#

C# String == Equals

2016-05-31 18:39 260 查看
using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace tmpTest

{

    class Program

    {

        static void Main(string[] args)

        {

            String str = "hello";

            if (str==args[0])

            {

                Console.WriteLine(str);

            }

            else

            {

                Console.WriteLine("not equal:"+str);

            }

           

        }

    }

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: