java split string w3schools code example Example: java sstring //string syntax. String hello = "Hello, world!";