Database Explorer
Tuesday, 23 June 2009
using System;
public class Test
{
public static void Main()
{
Console.WriteLine("enter students name:");
string s=Console.ReadLine();
if (s=="")
{
throw(new ArgumentNullException());
}
Console.WriteLine("the string is null");
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment