String s = "Hello, world!"; int byteCount = s.length() * 2;