20 lines
274 B
Plaintext
Raw Normal View History

2025-12-05 12:32:09 +01:00
String s = "hello world";
s
s.length()
s.toUpperCase()
s.toLowerCase()
s.charAt(0)
s.substring(0, 5)
s.indexOf("world")
s.contains("ell")
s.startsWith("hello")
s.endsWith("world")
s.trim()
String a = "foo";
String b = "bar";
a + b
a.equals("foo")
a.compareTo(b)
%whos
%quit