fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim full As String = "a11cd"
  6. Dim withoutSpaces As String = full.Replace(" ", "")
  7. Dim firstHalf As String = withoutSpaces.SubString(0, withoutSpaces.Length - 3)
  8. Console.WriteLine(full)
  9. Console.WriteLine(withoutSpaces)
  10. Console.WriteLine(firstHalf)
  11. End Sub
  12. End Class
Success #stdin #stdout 0.06s 13352KB
stdin
Standard input is empty
stdout
a11cd
a11cd
a1