Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ main
Method
main
Java/Leetcode/Leetcode58.java:4–7 ·
view source on GitHub ↗
(String[] args)
Source
from the content-addressed store, hash-verified
2
3
public
class
Leetcode58 {
4
public
static
void
main(String[] args) {
5
String s=
" fly me to the moon "
;
6
System.out.println(length(s));
7
}
8
9
static
int
length(String str){
10
StringBuilder s=
new
StringBuilder(str.trim());
Callers
nothing calls this directly
Calls
1
length
Method · 0.95
Tested by
no test coverage detected