Login
|
Signup
langref.org
-
fantom
and
csharp
add..
all
clojure
cpp
erlang
fsharp
go
groovy
haskell
java
ocaml
perl
php
python
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Strings
Manipulation
Remove leading and trailing whitespace from a string
Given the string
" hello "
return the string
"hello"
.
fantom
s := " hello ".trim
class SolutionXX
{
Void main()
{
s := " hello ".trim
}
}
csharp
string str = " hello ";
str = str.Trim();
Console.WriteLine(str);
class SolutionXX
{
static void Main()
{
string str = " hello ";
str = str.Trim();
Console.WriteLine(str);
}
}
Submit a new solution for
fantom
or
csharp
There are 20 other solutions in
additional
languages (
clojure
,
cpp
,
erlang
,
fsharp
...)