String s = "123"; int i; i = (int)s;
String s = "123"; int i; i = int.Parse(s);
String s = "123"; int i; i = Int32.Parse(s);
String s = "123"; int i; i = Convert.ToInt32(s);
String s = "123"; int i; i = CInt(s);
String s1 = "Nagpur"; String s2; s2 = s1.Insert(6, "Mumbai"); Console.WriteLine(s2);
String s1, s2; s1 = "Hi"; s2 = "Hi";
if(s1 = s2)
if(s1 == s2)
int c; c = s1.CompareTo(s2);
if( strcmp(s1, s2) )
if (s1 is s2)
String s1 = "String";
String s2;
s2 = s1;
String s1 = "String" ;
String s2;
s2 = String.Concat(s1, s2);
String s1 = "String";
String s2;
s2 = String.Copy(s1);
String s1 = "String";
String s2;
s2 = s1.Replace();
String s1 = "String";
String s2;
s2 = s2.StringCopy(s1);
String s1 = "String";
String s2;
s2 = String.Copy(s1);
namespace CuriousTabConsoleApplication { class SampleProgram { static void Main(string[ ] args) { string str= "Hello World!"; Console.WriteLine( String.Compare(str, "Hello World?" ).GetType() ); } } }
String str = "She sells sea shells on the sea-shore";
int i;
i = str.SecondIndexOf("s");
String str = "She sells sea shells on the sea-shore";
int i, j;
i = str.FirstIndexOf("s");
j = str.IndexOf("s", i + 1);
String str = "She sells sea shells on the sea-shore";
int i, j;
i = str.IndexOf("s");
j = str.IndexOf("s", i + 1);
String str = "She sells sea shells on the sea-shore";
int i, j;
i = str.LastIndexOf("s");
j = str.IndexOf("s", i - 1);
String str = "She sells sea shells on the sea-shore";
int i, j;
i = str.IndexOf("S");
j = str.IndexOf("s", i);
String str = "She sells sea shells on the sea-shore";
int i, j;
i = str.IndexOf("s");
j = str.IndexOf("s", i + 1);
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.