Quote (AbDuCt @ May 7 2015 09:59pm)
Don't be fooled, he doesn't actually know how to do anything.
He only gets mad when we tell him to stop coding.
Code
Sub Main()
Dim myString As String
myString = Console.ReadLine()
If Not myString = Nothing AndAlso Not String.Equals(myString, String.Empty, StringComparison.OrdinalIgnoreCase) Then
If String.Equals(myString, New String(myString.ToCharArray().Reverse().ToArray()), StringComparison.OrdinalIgnoreCase) Then
Console.WriteLine("PALINDROME!")
Console.ReadLine()
Else
Console.WriteLine("NOT PALINDROME!")
Console.ReadLine()
End If
End If
End Sub
I miss not having my usual extension methods
i just started intellisensing and wanted to see how far I could get
fuck that efficiency shit
This post was edited by Eep on May 7 2015 09:29pm